aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-09-06 21:09:50 +0200
committerLinnea Gräf <nea@nea.moe>2025-09-06 21:09:50 +0200
commit60cabacd46d9fbf459e4c8f3e8b4e12503b491a8 (patch)
treeade0ba73d401a4eb663b23551228b58224a552da /.github/workflows
parent7b1137b2cc7f298e32d6223fd34b75c91392b3ee (diff)
downloadFirmament-60cabacd46d9fbf459e4c8f3e8b4e12503b491a8.tar.gz
Firmament-60cabacd46d9fbf459e4c8f3e8b4e12503b491a8.tar.bz2
Firmament-60cabacd46d9fbf459e4c8f3e8b4e12503b491a8.zip
ci: set content permissions on release upload
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5989a02..0cd0b64 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -72,6 +72,8 @@ jobs:
name: Prepare a release
runs-on: ubuntu-22.04
needs: build
+ permissions:
+ contents: write
if: ${{ 'push' == github.event_name && startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v4
@@ -92,4 +94,4 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
- gh release create -t "Firmament ${GITHUB_REF#refs/tags/}" "${GITHUB_REF#refs/tags/}" -F "changelog.md" "*.jar"
+ gh release create --draft -t "Firmament ${GITHUB_REF#refs/tags/}" "${GITHUB_REF#refs/tags/}" -F "changelog.md" "*.jar"