From c446898c3d839021875ea43d221c64565e5f5808 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 21 Jan 2023 20:39:36 +0100 Subject: [PATCH] Fix release workflow (2) --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e3cd9b..4268b79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,8 @@ jobs: create-release-draft: name: pre-release runs-on: ubuntu-latest + permissions: + contents: write outputs: release_upload_url: ${{ steps.create_release.outputs.upload_url }} steps: @@ -16,14 +18,11 @@ jobs: if: ${{ !env.ACT }} - id: create_release - uses: marvinpinto/action-automatic-releases@latest + uses: ncipollo/release-action@v1 if: ${{ !env.ACT }} with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - automatic_release_tag: latest draft: true - title: Latest Pre-Release - files: | + artifacts: | LICENSE build-release: @@ -33,6 +32,8 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} + permissions: + contents: write steps: - uses: actions/checkout@v2 if: ${{ !env.ACT }}