Skip to content

Commit 4af46de

Browse files
committed
Update readme, add additional workflow
1 parent f58851c commit 4af46de

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ See the [wiki](https://github.com/zach-morris/plugin.program.iagl/wiki)
3939

4040
and
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

4444
and
4545

0 commit comments

Comments
 (0)