Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed azure pipelines support #178

Merged
merged 1 commit into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.