Skip to content

Commit

Permalink
removed azure pipelines support (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll authored Dec 7, 2020
1 parent 3154540 commit afa5191
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 163 deletions.
21 changes: 0 additions & 21 deletions .build/Solution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@
using Rocket.Surgery.Nuke.DotNetCore;
using Rocket.Surgery.Nuke.GithubActions;

[AzurePipelinesSteps(
AutoGenerate = false,
InvokeTargets = new[] { nameof(Default) },
NonEntryTargets = new[]
{
nameof(ICIEnvironment.CIEnvironment),
nameof(ITriggerCodeCoverageReports.Trigger_Code_Coverage_Reports),
nameof(ITriggerCodeCoverageReports.Generate_Code_Coverage_Report_Cobertura),
nameof(IGenerateCodeCoverageBadges.Generate_Code_Coverage_Badges),
nameof(IGenerateCodeCoverageReport.Generate_Code_Coverage_Report),
nameof(IGenerateCodeCoverageSummary.Generate_Code_Coverage_Summary),
nameof(Default)
},
ExcludedTargets = new[]
{ nameof(ICanClean.Clean), nameof(ICanRestoreWithDotNetCore.Restore), nameof(ICanRestoreWithDotNetCore.DotnetToolRestore) },
Parameters = new[]
{
nameof(IHaveCodeCoverage.CoverageDirectory), nameof(IHaveOutputArtifacts.ArtifactsDirectory), nameof(Verbosity),
nameof(IHaveConfiguration.Configuration)
}
)]
[GitHubActionsSteps("ci", GitHubActionsImage.MacOsLatest, GitHubActionsImage.WindowsLatest, GitHubActionsImage.UbuntuLatest,
AutoGenerate = false,
On = new[] { GitHubActionsTrigger.Push },
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Publish Nuget

on:
workflow_run:
workflows: ['ci']
types:
- completed

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'

- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ci.yml
run_id: ${{ github.event.id }}
name: nuget

# - uses: actions/download-artifact@v2
# with:
# name: nuget

- name: nuget.org
# continue-on-error: true
if: startsWith(github.ref, 'refs/tags/v')
env:
ApiKey: ${{ secrets.RSG_NUGET_API_KEY }}
shell: pwsh
run: |
dotnet nuget push **/*.nupkg --skip-duplicate --api-key $ENV:ApiKey --source nuget.org
- name: dev.azure.com
# continue-on-error: true
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
env:
ApiKey: ${{ secrets.RSG_AZURE_DEVOPS }}
shell: pwsh
run: |
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
dotnet nuget push **/*.nupkg --skip-duplicate --api-key azuredevops --source LibrariesPackages
- name: preview.dev.azure.com
# continue-on-error: true
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main'
env:
ApiKey: ${{ secrets.RSG_AZURE_DEVOPS }}
shell: pwsh
run: |
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
dotnet nuget push **/*.nupkg --skip-duplicate --api-key azuredevops --source LibrariesPreview
29 changes: 0 additions & 29 deletions azure-pipelines.nuke.yml

This file was deleted.

113 changes: 0 additions & 113 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit afa5191

Please sign in to comment.