Skip to content

Update native libs to (hopefully) fix UTF8 issues #10

Update native libs to (hopefully) fix UTF8 issues

Update native libs to (hopefully) fix UTF8 issues #10

Workflow file for this run

# https://acraven.medium.com/a-nuget-package-workflow-using-github-actions-7da8c6557863
name: Upload package to NuGet
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
name: Upload package to NuGet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore
run: dotnet restore
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Build
run: dotnet build -c Release --no-restore /p:Version=${VERSION} /p:PackageVersion=${VERSION}
# - name: Test
# run: dotnet test -c Release --no-restore --no-build
- name: Pack
run: dotnet pack -c Release /p:Version=${VERSION} --no-restore
- name: Upload Package
run: dotnet nuget push SCEToolSharp/bin/Release/SCEToolSharp.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}