Update ci #12
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
name: Deploy to NuGet.org | |
on: | |
push: | |
branches: | |
- mainline | |
tags: | |
- 'release/*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build and pack | |
run: | | |
dotnet pack --configuration Release | |
- name: Publish to NuGet.org | |
uses: nuget/setup-nuget@v1 | |
with: | |
nuget-api-key: ${{ secrets.SKYWARDNUGETAPIKEY }} | |
nuget-version: '5.x' | |
- name: Push package to NuGet.org | |
run: | | |
dotnet nuget push ./bin/Release/*.nupkg -s https://nuget.skywardapps.us/v3/index.json --skip-duplicate |