Skip to content

Expose UsePtrData and UseBranchName #54

Expose UsePtrData and UseBranchName

Expose UsePtrData and UseBranchName #54

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