File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Release Addons
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ types : [closed]
9+ branches :
10+ - master
11+
12+ jobs :
13+ release :
14+ if : github.event_name == 'push' || (github.event.pull_request.merged == true)
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v3
20+
21+ - name : Extract version from plugin.cfg
22+ id : get_version
23+ run : |
24+ version=$(grep '^version=' addons/godotvmf/plugin.cfg | cut -d= -f2 | tr -d '"')
25+ echo "version=$version" >> "$GITHUB_OUTPUT"
26+
27+ - name : Create ZIP archive with version in name
28+ run : |
29+ zip -r addons-v${{ steps.get_version.outputs.version }}.zip addons
30+
31+ - name : Create GitHub release and upload archive
32+ uses : softprops/action-gh-release@v2
33+ with :
34+ tag_name : v${{ steps.get_version.outputs.version }}
35+ name : Release v${{ steps.get_version.outputs.version }}
36+ files : addons-v${{ steps.get_version.outputs.version }}.zip
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 33name =" GodotVMF"
44description =" Allows use VMF files in Godot"
55author =" H2xDev"
6- version =" 2.1.5 "
6+ version =" 2.1.6 "
77script =" godotvmf.gd"
You can’t perform that action at this time.
0 commit comments