diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d767737..6e0c59c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,4 +1,3 @@ - name: CD on: @@ -6,8 +5,10 @@ on: tags: - "v[0-9]+.[0-9]+.[0-9]+" +permissions: + contents: write + env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPO: ${{ github.repository }} jobs: @@ -18,8 +19,10 @@ jobs: uses: actions/checkout@v4 - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create ${{ github.ref_name }} \ - -R $REPO \ + gh release create "${{ github.ref_name }}" \ + -R "$REPO" \ --title "Release ${{ github.ref_name }}" \ --generate-notes