Skip to content

Update Parlot version (#679) #67

Update Parlot version (#679)

Update Parlot version (#679) #67

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: dotnet restore
- name: Test
run: dotnet test -c Release --framework net8.0
- name: Pack with dotnet
run: |
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]}"
VERSION="${VERSION//v}"
PACKAGE_PATH="${GITHUB_WORKSPACE}/artifacts"
echo "$VERSION"
dotnet pack --property:PackageOutputPath=$PACKAGE_PATH --configuration Release -p:Version=$VERSION -p:ContinuousIntegrationBuild=True
- name: Push with dotnet
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate