Skip to content

Commit

Permalink
Update publish-on-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sonomirco authored Jul 28, 2021
1 parent 46933b3 commit 3f54ea9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ jobs:
with:
dotnet-version: 5.0.x

- name: Set env
run: |
echo "${{ github.event.release.tag_name }}"
echo "${{ github.ref }}"
echo "NUGET_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
echo "TAG=${github.event.release.tag_name}" >> $GITHUB_ENV
echo "NUGET_VERSION: ${{ env.NUGET_VERSION }}"
echo "TAG: ${{ env.TAG }}"
echo "TAG_NAME: ${{ env.TAG_NAME }}"
- name: 🔧 Restore nuget with dotnet
run: dotnet restore ${{ env.PROJECT_PATH }}

- name: 🧱 Build project
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:PackageVersion=${{ github.event.release.tag_name }} -p:Version=${{ github.event.release.tag_name }}
Expand Down

0 comments on commit 3f54ea9

Please sign in to comment.