Skip to content

Commit e8934ba

Browse files
authored
[skip ci] fix release.yml for grails-core pre release workflow
1 parent 803bb58 commit e8934ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
release_version: ${{ steps.release_version.outputs.value }}
1313
target_branch: ${{ steps.extract_branch.outputs.value }}
1414
runs-on: ubuntu-24.04
15+
permissions:
16+
contents: write
17+
packages: read
1518
steps:
1619
- name: "📥 Checkout repository"
1720
uses: actions/checkout@v4
@@ -69,11 +72,12 @@ jobs:
6972
publishToSonatype
7073
closeSonatypeStagingRepository
7174
release:
75+
environment: release
7276
name: "Release Sonatype Staging Repository"
7377
needs: publish
7478
runs-on: ubuntu-24.04
7579
permissions:
76-
contents: read
80+
contents: write
7781
packages: read
7882
steps:
7983
- name: "📥 Checkout repository"
@@ -105,6 +109,7 @@ jobs:
105109
if: success()
106110
uses: grails/github-actions/post-release@main
107111
docs:
112+
environment: release
108113
name: "Publish Documentation"
109114
needs: publish
110115
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)