mirror of
https://github.com/cmclark00/TetriStats.git
synced 2025-05-17 22:55:21 +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*'
|
- 'v*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Add permissions needed to create releases
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -60,8 +65,6 @@ jobs:
|
||||||
id: create_release_on_push
|
id: create_release_on_push
|
||||||
if: ${{ !startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' }}
|
if: ${{ !startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.VERSION_NAME }}-${{ github.run_number }}
|
tag_name: v${{ env.VERSION_NAME }}-${{ github.run_number }}
|
||||||
name: Release 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