Skip to content

Commit

Permalink
Merge steps of publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nachtjasmin committed Dec 4, 2023
1 parent 13bdf7a commit 53e2ac1
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
pack:
nuget-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,16 +24,12 @@ jobs:
- run: dotnet restore --locked-mode
- run: dotnet pack --no-restore --include-symbols -o . /p:Version=${VERSION}

deploy:
runs-on: ubuntu-latest
needs: pack
steps:
- name: Deploy to NuGet
run: dotnet nuget push *.nupkg --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
- name: Deploy to NuGet
run: dotnet nuget push *.nupkg --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}

- name: Deploy to GitHub Package Registry
run: dotnet nuget push *.nupkg --api-key $NUGET_AUTH_TOKEN --source https://nuget.pkg.github.com/anexia/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to GitHub Package Registry
run: dotnet nuget push *.nupkg --api-key $NUGET_AUTH_TOKEN --source https://nuget.pkg.github.com/anexia/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 53e2ac1

Please sign in to comment.