Skip to content

Commit fb0a669

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 fb0a669

2 files changed

Lines changed: 23 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 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,30 @@ jobs:
115114
runs-on: ubuntu-latest
116115
permissions:
117116
contents: write
118-
if: ${{ success() }}
119117
steps:
118+
- name: Checkout
119+
uses: actions/checkout@v6
120+
120121
- name: Download artifacts
121122
uses: actions/download-artifact@v8
122123
with:
123124
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.
125+
merge-multiple: true
130126

127+
- name: Create Release
128+
run: |
129+
gh release create "${{ github.ref_name }}" \
130+
--verify-tag \
131+
--draft \
132+
--title "GDScript formatter ${{ github.ref_name }}" \
133+
--notes "A fast code formatter for GDScript in Godot 4.
134+
131135
You can learn how to install, use, configure, and integrate the formatter into your workflow on this page:
136+
137+
https://www.gdquest.com/library/gdscript_formatter/"
132138
133-
https://www.gdquest.com/library/gdscript_formatter/
134-
files: |
135-
artifacts/**/*.zip
136-
draft: false
137-
prerelease: false
139+
gh release upload "${{ github.ref_name }}" artifacts/*.zip
140+
gh release edit "${{ github.ref_name }}" --draft=false
138141
env:
139142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143+
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)