mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
git: Add version to artifact names (#559)
* Version file test * change artifacts names * Release updated * Set release job name * set branch to the branch used to release * Set version for Windows Portable * git: New cache update (#558) * add CMakeCache.txt to cache * added workflow_dispatch to workflows * remove restore-keys from workflows * Separated cache * re-added restore-keys * put the version file for all OS * fix: In/Out parameters not working correctly when using the preprocessor * update submodules Co-authored-by: WerWolv <werwolv98@gmail.com>
This commit is contained in:
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
@@ -10,6 +10,9 @@ on:
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
name: Release
|
||||
env:
|
||||
version: ${{ github.event.release.tag_name }}
|
||||
|
||||
steps:
|
||||
- name: Get sources
|
||||
@@ -26,13 +29,28 @@ jobs:
|
||||
with:
|
||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
workflow: build.yml
|
||||
branch: master
|
||||
branch: ${{ github.event.release.target_commitish }}
|
||||
workflow_conclusion: success
|
||||
skip_unpack: true
|
||||
|
||||
|
||||
- name: Unzip files when needed
|
||||
run: |
|
||||
for zipfile in ./*.zip
|
||||
do
|
||||
if [ `zipinfo -1 "$zipfile" | wc -l` -eq 1 ];
|
||||
then
|
||||
echo "unzipping $zipfile"
|
||||
unzip "$zipfile"
|
||||
rm "$zipfile"
|
||||
else
|
||||
echo "keeping $zipfile zipped"
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Rename Windows Portable Zip
|
||||
run: mv "Windows Portable.zip" imhex-${{env.version}}-Windows-Portable.zip
|
||||
|
||||
- name: Upload everything to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
*.zip
|
||||
*.tar.gz
|
||||
files: '*'
|
||||
|
||||
Reference in New Issue
Block a user