mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
ci: make release upload idempotent
Change-Id: I826fcc302c0ea20877c66045e1e264efa7dbb3d5
This commit is contained in:
parent
04428950de
commit
d00075779e
1 changed files with 8 additions and 4 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
|
@ -44,7 +44,11 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tag="${GITHUB_REF#refs/tags/}"
|
||||
gh release create "$tag" \
|
||||
--title "$tag" \
|
||||
--generate-notes \
|
||||
main.js main.js.map manifest.json styles.css
|
||||
if gh release view "$tag" >/dev/null 2>&1; then
|
||||
gh release upload "$tag" --clobber main.js main.js.map manifest.json styles.css
|
||||
else
|
||||
gh release create "$tag" \
|
||||
--title "$tag" \
|
||||
--generate-notes \
|
||||
main.js main.js.map manifest.json styles.css
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue