change: url #4
Workflow file for this run
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: Release Nuget on GitHub Packages | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: Build Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build | |
run: dotnet build --configuration Release | |
- name: Get version information from tag | |
id: get_version | |
uses: battila7/get-version-action@v2 | |
- name: Package | |
run: > | |
dotnet pack --no-restore --no-build --configuration Release | |
-p:PackageVersion=${{ steps.get_version.outputs.version-without-v }} --output . | |
- name: Publish | |
run: > | |
dotnet nuget push AnovSyntax/bin/Release/Lemon73.AliceProject.AnovSyntax.${{ steps.get_version.outputs.version-without-v }}.nupkg | |
-s https://nuget.pkg.github.com/Lemon73-Computing/index.json | |
-k ${{ secrets.NUGET_AUTH_TOKEN }} |