Skip to content

Commit 81e94c2

Browse files
committed
2 parents d4aad8b + 4d1b376 commit 81e94c2

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This is a basic workflow that is manually triggered
2+
3+
name: Build and Release
4+
5+
# Controls when the action will run. Workflow runs when manually triggered using the UI
6+
# or API.
7+
on:
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
env:
14+
python_ver: 3.12
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Set up Python ${{ env.python_ver }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ env.python_ver }}
25+
26+
- name: Run generator file
27+
run: python generate_plugin_file.py
28+
29+
- name: get version
30+
id: version
31+
uses: notiz-dev/github-action-json-property@release
32+
with:
33+
path: 'plugin.json'
34+
prop_path: 'Version'
35+
36+
- run: echo ${{steps.version.outputs.prop}}
37+
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install -r ./requirements.txt -t ./lib
42+
43+
- name: Package to zip
44+
run: zip -r Flow.Launcher.Plugin.FlowLoadNotification.zip . -x '*.git*'
45+
46+
- name: Publish
47+
if: success()
48+
uses: softprops/action-gh-release@v2
49+
with:
50+
files: 'Flow.Launcher.Plugin.FlowLoadNotification.zip'
51+
tag_name: "v${{steps.version.outputs.prop}}"
52+
body_path: 'CHANGELOG.txt'

0 commit comments

Comments
 (0)