Skip to content

Commit

Permalink
[ci] handle nightly tag with gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
WHO53 committed Aug 15, 2024
1 parent e7c7f18 commit 0033e7f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}${{ steps.create_nightly.outputs.upload_url }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Free up some storage
uses: jlumbroso/free-disk-space@main
with:
Expand All @@ -103,21 +106,14 @@ jobs:
large-packages: true
swap-storage: true

- name: Delete old nightly release
uses: dev-drprasad/[email protected]
if: startsWith(github.ref, 'refs/tags/droidian') != true
with:
delete_release: true # default: false
tag_name: nightly # tag name to delete
- name: Nightly tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Tag snapshot
if: startsWith(github.ref, 'refs/tags/droidian') != true
uses: tvdias/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
tag: nightly
run: |
gh release delete nightly --yes | true
git push --delete origin refs/tags/nightly || true
gh release create nightly
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 0033e7f

Please sign in to comment.