actions build: use tag name in windows bundle
This commit is contained in:
parent
459496d350
commit
f80f15cc67
1 changed files with 5 additions and 5 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -143,18 +143,18 @@ jobs:
|
||||||
- name: Prep Release Directory
|
- name: Prep Release Directory
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
mkdir porymap-windows
|
mkdir porymap-windows-${{ github.ref_name }}
|
||||||
cp release/porymap.exe porymap-windows/porymap.exe
|
cp release/porymap.exe porymap-windows-${{ github.ref_name }}/porymap.exe
|
||||||
cp RELEASE-README.txt porymap-windows/README.txt
|
cp RELEASE-README.txt porymap-windows-${{ github.ref_name }}/README.txt
|
||||||
|
|
||||||
- name: Bundle Release Directory
|
- name: Bundle Release Directory
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: powershell.exe -Command "Compress-Archive -Path porymap-windows -DestinationPath porymap-windows.zip"
|
run: powershell.exe -Command "Compress-Archive -Path porymap-windows -DestinationPath porymap-windows-${{ github.ref_name }}.zip"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: porymap-windows.zip
|
files: porymap-windows-${{ github.ref_name }}.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue