Skip to content

Commit

Permalink
Update daily-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim authored Sep 24, 2024
1 parent 0537887 commit 2727110
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/daily-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ jobs:

release:
needs: build
permissions:
contents: write
packages: write
runs-on: ubuntu-latest

steps:
Expand All @@ -113,15 +116,11 @@ jobs:
- name: Delete existing release
# When this workflow is run in its first time, or 2+ are running side-by-side, the release may not exists. It is okay to ignore 404s.
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release delete ${{ steps.compute_hash.outputs.release_tag_name }} --repo ${{ github.repository }} --yes

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.compute_hash.outputs.release_tag_name }}
release_name: Daily (${{ github.ref }})
Expand Down Expand Up @@ -157,6 +156,4 @@ jobs:
prerelease: true

- name: Upload assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.compute_hash.outputs.release_tag_name }} *.js *.json *.tgz --repo ${{ github.repository }}

0 comments on commit 2727110

Please sign in to comment.