Skip to content

Commit

Permalink
Merge pull request #20 from stscoundrel/feature/cd
Browse files Browse the repository at this point in the history
Add publish / CD workflow on new version
  • Loading branch information
stscoundrel authored Apr 24, 2022
2 parents afc2577 + c43d65a commit 5369e81
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release package to NuGet

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
source-url: https://nuget.pkg.github.com/stscoundrel/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: dotnet build --configuration Release src/Riimut.csproj
- name: Create the package
run: dotnet pack --configuration Release src/Riimut.csproj
- name: Publish the package to NuGet
run: dotnet nuget push src/bin/Release/*.nupkg --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json

0 comments on commit 5369e81

Please sign in to comment.