File tree Expand file tree Collapse file tree 2 files changed +52
-1
lines changed
Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Release IAGL existing db
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ publish :
6+ description : ' Manually Release'
7+ required : true
8+ default : Yes
9+ type : choice
10+ options :
11+ - Yes
12+ - No
13+ push :
14+ tags :
15+ - ' u*'
16+ jobs :
17+ build-and-release :
18+ runs-on : ubuntu-latest
19+ steps :
20+ # Step 1: Checkout the repository
21+ - name : Checkout Code
22+ id : checkout
23+ uses : actions/checkout@master
24+
25+ # Step 2: Extract the version tag from addon.xml
26+ - name : Get Version from addon.xml
27+ id : get_version
28+ uses : mavrosxristoforos/get-xml-info@2.0
29+ with :
30+ xml-file : ' addon.xml'
31+ xpath : ' /addon/@version'
32+
33+ # Step 3: Create a zip file of the latest release
34+ - name : Generate Release Archive
35+ id : create_zip
36+ uses : thedoctor0/zip-release@0.7.6
37+ with :
38+ type : ' zip'
39+ path : ' plugin.program.iagl'
40+ command : ' mkdir plugin.program.iagl; mv * plugin.program.iagl'
41+ filename : ' plugin.program.iagl-${{ steps.get_version.outputs.info }}.zip'
42+ exclusions : ' *.git* /*node_modules/* .editorconfig *.xlsx *iagl.db.zip'
43+
44+ # Step 4: Upload the release
45+ - name : Upload Release
46+ id : upload_release
47+ uses : ncipollo/release-action@v1.14.0
48+ with :
49+ artifacts : ' plugin.program.iagl-${{ steps.get_version.outputs.info }}.zip'
50+ name : ' plugin.program.iagl-${{ steps.get_version.outputs.info }}'
51+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ See the [wiki](https://github.com/zach-morris/plugin.program.iagl/wiki)
3939
4040and
4141
42- See the [ FAQ] ( https://github.com/zach-morris/plugin.program.iagl/wiki/5 .--FAQ )
42+ See the [ FAQ] ( https://github.com/zach-morris/plugin.program.iagl/wiki/4 .--FAQ )
4343
4444and
4545
You can’t perform that action at this time.
0 commit comments