use commit hash as tag for testing releases
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user