From 3c3f8980961af3498d5ec6deca391c14eefe7628 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Sat, 25 Mar 2023 08:50:54 -0700 Subject: [PATCH] Use new release action, add permissions --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcab95b..9fca245 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: tags: - v[0-9]+.[0-9]+.[0-9]+ +permissions: + contents: write + jobs: release: runs-on: ubuntu-latest @@ -28,10 +31,6 @@ jobs: sed -E 's/\[(#[0-9]*)\]\[\]/\1/g' >/tmp/github_release.md - - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} body_path: /tmp/github_release.md