use gh cli to update release (#166)
This commit is contained in:
parent
9548978d80
commit
ce73a5f172
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
|
@ -36,27 +36,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build --standalone
|
run: pnpm build --standalone
|
||||||
|
|
||||||
- name: Get some values needed for the release
|
- name: Upload Devbuild
|
||||||
id: vars
|
run: gh release upload devbuild --clobber dist/*
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
|
||||||
|
|
||||||
- uses: dev-drprasad/delete-tag-and-release@085c6969f18bad0de1b9f3fe6692a3cd01f64fe5 # v0.2.0
|
|
||||||
with:
|
|
||||||
delete_release: true
|
|
||||||
tag_name: devbuild
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Create the release
|
|
||||||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: devbuild
|
|
||||||
name: Dev Build ${{ steps.vars.outputs.sha_short }}
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
files: |
|
|
||||||
dist/*
|
|
||||||
|
|
Loading…
Reference in a new issue