Skip to content

Commit

Permalink
Merge pull request #9 from NikRimington/dev/v1
Browse files Browse the repository at this point in the history
[AMEND] Workflow to use tag as version
  • Loading branch information
NikRimington authored Oct 1, 2024
2 parents 7d66ab3 + 3a99a4d commit b4a396b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x

- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV

- name: Build project
run: dotnet build src\AccessibleMediaPicker\HCS.Media.AccessibleMediaPicker.csproj --configuration Release
run: dotnet build src\AccessibleMediaPicker\HCS.Media.AccessibleMediaPicker.csproj --configuration Release /p:Version=${VERSION}

- name: Push to NuGet
run: dotnet nuget push **\*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 comments on commit b4a396b

Please sign in to comment.