Skip to content

Commit d89fab0

Browse files
committed
CI: Add a job to package the Godot add-on to zip it automatically on releases
1 parent 5f5cfaf commit d89fab0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,44 @@ jobs:
8585
name: GDScript formatter ${{ github.ref_name }}
8686
body: |
8787
A fast code formatter for GDScript in Godot 4.
88+
89+
You can learn how to install, use, configure, and integrate the formatter into your workflow on this page:
90+
91+
https://www.gdquest.com/library/gdscript_formatter/
8892
files: |
8993
*.zip
9094
draft: false
9195
prerelease: false
9296
env:
9397
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
99+
package-godot-addon:
100+
name: Package the Godot add-on
101+
runs-on: ubuntu-latest
102+
permissions:
103+
contents: write
104+
steps:
105+
- name: Checkout
106+
uses: actions/checkout@v5
107+
108+
- name: Create godot-addon.zip
109+
run: |
110+
zip -r godot-addon.zip addons/
111+
shell: bash
112+
113+
- name: Create/Update Release
114+
uses: softprops/action-gh-release@v2
115+
with:
116+
name: GDScript formatter ${{ github.ref_name }}
117+
body: |
118+
A fast code formatter for GDScript in Godot 4.
119+
120+
You can learn how to install, use, configure, and integrate the formatter into your workflow on this page:
121+
122+
https://www.gdquest.com/library/gdscript_formatter/
123+
files: |
124+
godot-addon.zip
125+
draft: false
126+
prerelease: false
127+
env:
128+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)