mirror of
https://github.com/cmclark00/TetriStats.git
synced 2025-05-18 07:05:20 +01:00
Add required permissions to GitHub workflow for creating releases
This commit is contained in:
parent
ad18d34cd0
commit
d350cf190b
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -7,6 +7,11 @@ on:
|
|||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
# Add permissions needed to create releases
|
||||
permissions:
|
||||
contents: write
|
||||
packages: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -60,8 +65,6 @@ jobs:
|
|||
id: create_release_on_push
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' }}
|
||||
uses: softprops/action-gh-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: v${{ env.VERSION_NAME }}-${{ github.run_number }}
|
||||
name: Release v${{ env.VERSION_NAME }}-${{ github.run_number }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue