mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
build: improve zip name for local builds
This commit is contained in:
parent
f3e944a5c1
commit
9bdce62a3f
1 changed files with 5 additions and 5 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -16,6 +16,9 @@ jobs:
|
|||
with:
|
||||
path: .
|
||||
fetch-depth: 1
|
||||
- name: Extract tag name
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::$(git describe --abbrev=7 --tags)
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
@ -25,7 +28,7 @@ jobs:
|
|||
make clean release
|
||||
- name: Package release
|
||||
run: |
|
||||
7z a release.zip ./bin/* ./build/*.dll ./build/*.exe
|
||||
7z a Tomb1Main-${{ steps.get_version.outputs.VERSION }}.zip ./bin/* ./build/*.dll ./build/*.exe
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
|
@ -36,9 +39,6 @@ jobs:
|
|||
release_name: Release ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Extract tag name
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
|
||||
- name: Upload release asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
@ -46,6 +46,6 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: release.zip
|
||||
asset_path: Tomb1Main-${{ steps.get_version.outputs.VERSION }}.zip
|
||||
asset_name: Tomb1Main-${{ steps.get_version.outputs.VERSION }}.zip
|
||||
asset_content_type: application/zip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue