2.4.0.2-ydm-0.1.5 #6
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: Publish Library | |
# When a release is published | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
# 2019, has our .NET needs, latest does not | |
runs-on: windows-2019 | |
env: | |
VERSION: ${{ github.event.release.tag_name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get version | |
run: echo "Building with ${{ env.VERSION }}" | |
- name: Setup .NET 7 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '2.0' | |
- name: Build & Pack BEPU Physics | |
run: dotnet pack BepuPhysics --output nupkgs --configuration ReleaseStrip -p:Version=${{ env.VERSION }} | |
- name: Build & Pack BEPU Utilities | |
run: dotnet pack BepuUtilities --output nupkgs --configuration ReleaseStrip -p:Version=${{ env.VERSION }} | |
- name: Nuget Publish | |
run: dotnet nuget push nupkgs\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json |