Skip to content

Commit

Permalink
Merge pull request #118 from tannergooding/main
Browse files Browse the repository at this point in the history
Updating the ci workflow to dual publish packages
  • Loading branch information
tannergooding authored Aug 6, 2020
2 parents 60184b4 + 960568f commit b7e89a1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
./artifacts/pkg/**/*
./artifacts/tst/**/*
if-no-files-found: error
publish:
publishAz:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
needs: [ windows, unix ]
Expand All @@ -72,6 +72,22 @@ jobs:
with:
dotnet-version: '3.1.x'
source-url: https://pkgs.terrafx.dev/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }}
- run: dotnet nuget push ./artifacts/pkg/Release/*.nupkg
publishGH:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
needs: [ windows, unix ]
steps:
- uses: actions/download-artifact@v2
with:
name: windows_release_x64
path: ./artifacts
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
source-url: https://nuget.pkg.github.com/terrafx/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: dotnet nuget push ./artifacts/pkg/Release/*.nupkg

0 comments on commit b7e89a1

Please sign in to comment.