Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
TAG: ${{ github.ref_name }}
run: |
set -euo pipefail
if gh release view "$TAG" >/dev/null 2>&1; then
if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
echo "Release $TAG already exists."
else
gh release create "$TAG" --title "$TAG" --generate-notes
gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --title "$TAG" --generate-notes
fi

build:
Expand Down Expand Up @@ -93,12 +93,12 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: gh release upload "$TAG" dist/*.tar.gz dist/*.tar.gz.sha256 --clobber
run: gh release upload "$TAG" --repo "$GITHUB_REPOSITORY" dist/*.tar.gz dist/*.tar.gz.sha256 --clobber

- name: Upload archive (Windows)
if: matrix.archive == 'zip'
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: gh release upload $env:TAG dist/*.zip dist/*.zip.sha256 --clobber
run: gh release upload $env:TAG --repo $env:GITHUB_REPOSITORY dist/*.zip dist/*.zip.sha256 --clobber
Loading