Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DoraTiger committed Jun 3, 2024
1 parent 0cd4083 commit 8634a9b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,18 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: release/*
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

- name: Install GitHub CLI
run: sudo apt-get install -y gh

- name: Update latest Release
run: |
latest_release=$(gh release view latest --json tagName --jq .tagName) || true
if [ -n "$latest_release" ]; then
gh release delete latest -y || true
fi
gh release create latest -t "Latest release" --target ${{ github.ref }} --notes "This is the latest release."
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit 8634a9b

Please sign in to comment.