Skip to content

Publish package to NuGet #3

Publish package to NuGet

Publish package to NuGet #3

Workflow file for this run

name: Publish package to NuGet
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.401'
- name: Run Build
run: ./scripts.sh build
# - name: Run Publish
# run: ./scripts.sh publish ${{ secrets.NUGET_TOKEN }}
- name: Zip files
run: zip -r release.zip lib/PCPServerSDKDotNet/bin/Release
- name: Set latest given to github output
id: set-tag
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: release.zip
tag: ${{ steps.set-tag.outputs.tag }}