Skip to content

Commit 467d35f

Browse files
removed azure pipelines support (#351)
1 parent 023874c commit 467d35f

File tree

4 files changed

+58
-167
lines changed

4 files changed

+58
-167
lines changed

.build/Build.CI.cs

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,7 @@
66
using Rocket.Surgery.Nuke.DotNetCore;
77
using Rocket.Surgery.Nuke.GithubActions;
88

9-
[AzurePipelinesSteps(
10-
AutoGenerate = false,
11-
InvokeTargets = new[] { nameof(Default) },
12-
NonEntryTargets = new[]
13-
{
14-
nameof(ICIEnvironment.CIEnvironment),
15-
nameof(ITriggerCodeCoverageReports.Trigger_Code_Coverage_Reports),
16-
nameof(ITriggerCodeCoverageReports.Generate_Code_Coverage_Report_Cobertura),
17-
nameof(IGenerateCodeCoverageBadges.Generate_Code_Coverage_Badges),
18-
nameof(IGenerateCodeCoverageReport.Generate_Code_Coverage_Report),
19-
nameof(IGenerateCodeCoverageSummary.Generate_Code_Coverage_Summary),
20-
nameof(Default)
21-
},
22-
ExcludedTargets = new[]
23-
{ nameof(ICanClean.Clean), nameof(ICanRestoreWithDotNetCore.Restore), nameof(ICanRestoreWithDotNetCore.DotnetToolRestore) },
24-
Parameters = new[]
25-
{
26-
nameof(IHaveCodeCoverage.CoverageDirectory), nameof(IHaveOutputArtifacts.ArtifactsDirectory), nameof(Verbosity),
27-
nameof(IHaveConfiguration.Configuration)
28-
}
29-
)]
9+
3010
[GitHubActionsSteps("ci", GitHubActionsImage.MacOsLatest, GitHubActionsImage.WindowsLatest, GitHubActionsImage.UbuntuLatest,
3111
AutoGenerate = false,
3212
On = new[] { GitHubActionsTrigger.Push },
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Publish Nuget
2+
3+
on:
4+
workflow_run:
5+
workflows: ['ci']
6+
types:
7+
- completed
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: nuget/setup-nuget@v1
15+
with:
16+
nuget-version: '5.x'
17+
18+
- name: Download artifact
19+
uses: dawidd6/action-download-artifact@v2
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
workflow: ci.yml
23+
run_id: ${{ github.event.id }}
24+
name: nuget
25+
26+
# - uses: actions/download-artifact@v2
27+
# with:
28+
# name: nuget
29+
30+
- name: nuget.org
31+
# continue-on-error: true
32+
if: startsWith(github.ref, 'refs/tags/v')
33+
env:
34+
ApiKey: ${{ secrets.RSG_NUGET_API_KEY }}
35+
shell: pwsh
36+
run: |
37+
dotnet nuget push **/*.nupkg --skip-duplicate --api-key $ENV:ApiKey --source nuget.org
38+
39+
- name: dev.azure.com
40+
# continue-on-error: true
41+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
42+
env:
43+
ApiKey: ${{ secrets.RSG_AZURE_DEVOPS }}
44+
shell: pwsh
45+
run: |
46+
dotnet nuget add source https://rocketsurgeonsguild.pkgs.visualstudio.com/Libraries/_packaging/Packages/nuget/v3/index.json --store-password-in-clear-text --name LibrariesPackages --username azuredevops --password $ENV:ApiKey
47+
dotnet nuget push **/*.nupkg --skip-duplicate --api-key azuredevops --source LibrariesPackages
48+
49+
- name: preview.dev.azure.com
50+
# continue-on-error: true
51+
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main'
52+
env:
53+
ApiKey: ${{ secrets.RSG_AZURE_DEVOPS }}
54+
shell: pwsh
55+
run: |
56+
dotnet nuget add source https://rocketsurgeonsguild.pkgs.visualstudio.com/Libraries/_packaging/Preview/nuget/v3/index.json --store-password-in-clear-text --name LibrariesPreview --username azuredevops --password $ENV:ApiKey
57+
dotnet nuget push **/*.nupkg --skip-duplicate --api-key azuredevops --source LibrariesPreview

azure-pipelines.nuke.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)