Skip to content

Commit

Permalink
Update build-win-release action
Browse files Browse the repository at this point in the history
Hopefully it will work better
  • Loading branch information
mcraiha committed Jun 1, 2022
1 parent 9cf347a commit 1e06fc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-win-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Get current tag
run: echo "CURRENT_TAG=`git describe --tags --abbrev=0`" >> $GITHUB_ENV
- name: Restore dependencies
run: dotnet restore
- name: Build a release
Expand All @@ -25,11 +27,11 @@ jobs:
- name: Install zip
run: sudo apt install zip
- name: Package
run: zip -9 release_${{ github.ref_name }}-win_x64.zip dithery.exe
run: zip -9 release_${{ env.CURRENT_TAG }}-win_x64.zip dithery.exe
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
release_${{ github.ref_name }}-win_x64.zip
release_${{ env.CURRENT_TAG }}-win_x64.zip

0 comments on commit 1e06fc4

Please sign in to comment.