File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ jobs:
3939
4040 - name : Get git hash
4141 run : |
42- echo -n "https://github.com/${GITHUB_REPOSITORY}/commit/" > src/runtime/version
43- git rev-parse --short HEAD | xargs >> src/runtime/version
42+ VERSION="$(date --utc +%Y-%m-%d)-$(git rev-parse --short HEAD)"
43+ echo -n "https://github.com/${GITHUB_REPOSITORY}/releases/tag/build-${VERSION}" > src/runtime/version
44+ echo "${VERSION}" > tag.txt
4445
45- - name : Build
46+ - name : Build (x86)
4647 if : contains(matrix.qemu_arch, 'x86')
4748 env :
4849 ARCHITECTURE : ${{ matrix.appimage_arch }}
@@ -59,18 +60,17 @@ jobs:
5960 dockerRunArgs : |
6061 --volume "${PWD}/out:/out"
6162 --volume "${PWD}/src:/src"
62- run : |
63- ./build.sh
64- # echo "artifactName=$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
65- - uses : actions/upload-artifact@v3
63+ run : ./build.sh
64+
65+ - name : Upload Build Artifacts
66+ uses : actions/upload-artifact@v3
6667 with :
6768 name : artifacts
6869 path : ./out/*
6970
70- - name : Upload to releases
71+ - name : Create Release
7172 if : github.event_name != 'pull_request' && github.ref_name == 'master'
72- uses : softprops/action-gh-release@v1
73- with :
74- files : out/*
75- tag_name : continuous
76-
73+ run : |
74+ VERSION="$(cat tag.txt)"
75+ gh release create --prerelease --title "Build ${VERSION}" "build-${VERSION}" out/* \
76+ || gh release upload "build-${VERSION}" out/*
You can’t perform that action at this time.
0 commit comments