-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed azure pipelines support (#178)
- Loading branch information
1 parent
3154540
commit afa5191
Showing
4 changed files
with
57 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.