Skip to content

Commit 7170f04

Browse files
authored
Fix build.yaml workflow configuration
Updated the GitHub Actions workflow to ensure proper permissions and corrected a duplicate 'uses' statement.
1 parent f655b6e commit 7170f04

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Native Installers
33
on:
44
push:
55
branches: [ "main" ]
6-
tags: [ "v*" ] # This ensures the workflow triggers when you push a tag
6+
tags: [ "v*" ]
77
pull_request:
88
branches: [ "main" ]
99

@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Set up JDK 25
24-
uses: uses: actions/setup-java@v4
24+
uses: actions/setup-java@v4
2525
with:
2626
java-version: '25'
2727
distribution: 'oracle'
@@ -41,12 +41,13 @@ jobs:
4141
name: ${{ matrix.os }}-installer
4242
path: dist/
4343

44-
# This must be aligned exactly with "build:"
4544
release:
4645
name: Create GitHub Release
4746
needs: build
4847
if: startsWith(github.ref, 'refs/tags/')
4948
runs-on: ubuntu-latest
49+
permissions:
50+
contents: write # Important: Gives the action permission to upload files
5051
steps:
5152
- name: Download all artifacts
5253
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)