Skip to content

Commit 47b4a7d

Browse files
committed
2 parents 9e82ab3 + 7c4ecf4 commit 47b4a7d

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/Publish Release.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Publish Release
22

33
on:
4-
push:
5-
branches: [ main ]
6-
paths-ignore:
7-
- .github/workflows/*
4+
workflow_dispatch: # Allows manual execution from GitHub Actions
85

96
permissions:
107
contents: write
@@ -17,33 +14,33 @@ jobs:
1714

1815
steps:
1916
- uses: actions/checkout@v4
20-
17+
2118
- name: Set up Python
2219
uses: actions/setup-python@v4
2320
with:
2421
python-version: ${{ env.python_ver }}
25-
22+
2623
- name: Get version from plugin.json
2724
id: version
2825
uses: notiz-dev/github-action-json-property@release
29-
with:
26+
with:
3027
path: 'plugin.json'
3128
prop_path: 'Version'
32-
29+
3330
- name: Generate unique release tag
3431
id: generate_tag
3532
run: |
3633
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
3734
VERSION="${{ steps.version.outputs.prop }}"
3835
UNIQUE_TAG="v${VERSION}-${TIMESTAMP}"
3936
echo "tag=${UNIQUE_TAG}" >> $GITHUB_OUTPUT
40-
37+
4138
- name: Install dependencies and create zip
4239
run: |
4340
python -m pip install --upgrade pip
4441
pip install -r ./requirements.txt -t ./lib
4542
zip -r Flow.Launcher.Plugin.Portal2.Autorender.zip . -x '*.git*'
46-
43+
4744
- name: Create Release
4845
uses: softprops/action-gh-release@v1
4946
with:

0 commit comments

Comments
 (0)