Expose UsePtrData and UseBranchName #54
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: Publish to nuget | |
on: | |
push: | |
branches: | |
- master # Default release branch | |
jobs: | |
publish: | |
name: build, pack & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: | | |
8.0.x | |
# Build | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build the libraries | |
run: dotnet build --configuration Release SimcProfileParser/SimcProfileParser.csproj | |
# Package | |
- name: Package the libraries | |
run: dotnet pack --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release SimcProfileParser/SimcProfileParser.csproj -o . | |
# Publish | |
- name: Publish on version change | |
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate |