Skip to content

Commit 8301e47

Browse files
committed
chore: update release workflow and dependencies
- replace softprops/action-gh-release with gh CLI for release creation and upload - switch actions/checkout from v5 to v6 - reduce unnecessary write permissions in build and package jobs - enable artifact merge-multiple in download step - remove conditional success check from release job
1 parent 0c52acf commit 8301e47

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535

3636
runs-on: ${{ matrix.os }}
3737
permissions:
38-
contents: write
38+
contents: read
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@v6
4242

4343
- name: Install Rust
4444
uses: dtolnay/rust-toolchain@stable
@@ -90,14 +90,13 @@ jobs:
9090
name: Package the Godot add-on
9191
runs-on: ubuntu-latest
9292
permissions:
93-
contents: write
93+
contents: read
9494
steps:
9595
- name: Checkout
96-
uses: actions/checkout@v5
96+
uses: actions/checkout@v6
9797

9898
- name: Create godot-addon.zip
99-
run: |
100-
zip -r godot-addon.zip addons/
99+
run: zip -r godot-addon.zip addons/
101100
shell: bash
102101

103102
- name: Upload artifact
@@ -115,25 +114,27 @@ jobs:
115114
runs-on: ubuntu-latest
116115
permissions:
117116
contents: write
118-
if: ${{ success() }}
119117
steps:
120118
- name: Download artifacts
121119
uses: actions/download-artifact@v8
122120
with:
123121
path: artifacts
124-
- name: Create/Update Release
125-
uses: softprops/action-gh-release@v3
126-
with:
127-
name: GDScript formatter ${{ github.ref_name }}
128-
body: |
129-
A fast code formatter for GDScript in Godot 4.
122+
merge-multiple: true
130123

124+
- name: Create Release
125+
run: |
126+
gh release create "${{ github.ref_name }}" \
127+
--verify-tag \
128+
--draft \
129+
--title "GDScript formatter ${{ github.ref_name }}" \
130+
--notes "A fast code formatter for GDScript in Godot 4.
131+
131132
You can learn how to install, use, configure, and integrate the formatter into your workflow on this page:
133+
134+
https://www.gdquest.com/library/gdscript_formatter/"
132135
133-
https://www.gdquest.com/library/gdscript_formatter/
134-
files: |
135-
artifacts/**/*.zip
136-
draft: false
137-
prerelease: false
136+
gh release upload "${{ github.ref_name }}" artifacts/*.zip
137+
gh release edit "${{ github.ref_name }}" --draft=false
138138
env:
139139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140+
shell: bash

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: checkout
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919

2020
- name: Install Rust
2121
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)