-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the package version from the tag instead of the csproj
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,24 +20,24 @@ jobs: | |
env: | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} | ||
|
||
- name: Build | ||
run: dotnet build --configuration Release | ||
|
||
- name: Create the package | ||
run: dotnet pack --configuration Release | ||
run: dotnet pack --configuration Release -p:PackageVersion=${{ steps.get_version.outputs.VERSION }} | ||
|
||
- name: Publish the package to GPR | ||
working-directory: ./src/Pinch.SDK | ||
run: dotnet nuget push ./bin/Release/*.nupkg | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: Publish Github Release | ||
uses: marvinpinto/[email protected] | ||
with: | ||
title: ${{ steps.get_version.outputs.VERSION }} | ||
title: v${{ steps.get_version.outputs.VERSION }} | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
prerelease: false | ||
files: ./bin/Release/*.nupkg |
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