File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments