Skip to content

Commit

Permalink
Use .NET 8 for releasing as well
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaanderidder committed Nov 19, 2023
1 parent 41283ab commit acfcac2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,25 @@ jobs:
name: Release package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Create package
run: dotnet pack -c Release -p:Version=${{ github.event.release.tag_name }}

- name: Archive package
uses: actions/upload-artifact@v3
with:
name: QuestPDF.Markdown
path: ./package/QuestPDF.Markdown.${{ github.event.release.tag_name }}.nupkg

- name: Publish package (GitHub)
run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.GH_API_KEY }} --source https://nuget.pkg.github.com/christiaanderidder/index.json

- name: Publish package (NuGet)
run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit acfcac2

Please sign in to comment.