From 27271109b7ddc683e70542c84bd19950a32626ef Mon Sep 17 00:00:00 2001 From: William Wong Date: Tue, 24 Sep 2024 10:52:06 -0700 Subject: [PATCH] Update daily-release.yaml --- .github/workflows/daily-release.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/daily-release.yaml b/.github/workflows/daily-release.yaml index bede54d690..23da6f326f 100644 --- a/.github/workflows/daily-release.yaml +++ b/.github/workflows/daily-release.yaml @@ -88,6 +88,9 @@ jobs: release: needs: build + permissions: + contents: write + packages: write runs-on: ubuntu-latest steps: @@ -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 }}) @@ -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 }}