use commit hash as tag for testing releases

This commit is contained in:
liamcottle
2024-05-28 23:39:17 +12:00
parent 10085b72b5
commit 7c32481137

View File

@@ -31,15 +31,9 @@ jobs:
- name: Build Electron App
run: npm run dist
- name: Get Tag
id: get_tag
if: startsWith(github.ref, 'refs/tags/')
run: |
echo ${GITHUB_REF/refs\/tags\//}
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: "$(git rev-parse --short=7 HEAD)"
artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe"