mirror of
https://github.com/Luca1991/NDSFactory.git
synced 2025-07-09 05:30:12 +02:00
GitHub Actions - Use commit hash as release version
This commit is contained in:
parent
3c7bae69f8
commit
b334ff78ff
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -42,10 +42,12 @@ jobs:
|
|||||||
make -j4
|
make -j4
|
||||||
|
|
||||||
- name: Archive Artifact
|
- name: Archive Artifact
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
tar -czvf NDSFactory_`date +%Y%m%d`__Linux_x86_64.tar.gz NDSFactory ../README.md ../LICENSE
|
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
|
cd build
|
||||||
|
tar -czvf NDSFactory_${git_hash}__Linux_x86_64.tar.gz NDSFactory ../README.md ../LICENSE
|
||||||
|
|
||||||
- name: Release on GitHub
|
- name: Release on GitHub
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
@ -85,10 +87,12 @@ jobs:
|
|||||||
macdeployqt NDSFactory.app
|
macdeployqt NDSFactory.app
|
||||||
|
|
||||||
- name: Archive Artifact
|
- name: Archive Artifact
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
zip -r NDSFactory_`date +%Y%m%d`__macOS_x86_64.zip NDSFactory.app ../README.md ../LICENSE
|
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
|
cd build
|
||||||
|
zip -r NDSFactory_${git_hash}__macOS_x86_64.zip NDSFactory.app ../README.md ../LICENSE
|
||||||
|
|
||||||
- name: Release on GitHub
|
- name: Release on GitHub
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user