Skip to content

Commit da3b5a4

Browse files
committed
Distinct releases
1 parent 329936d commit da3b5a4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/Publish Release.yaml

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

33
on:
4-
workflow_dispatch:
54
push:
65
branches: [ main ]
76
paths-ignore:
@@ -17,9 +16,10 @@ jobs:
1716
python_ver: 3.11
1817

1918
steps:
20-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v4
20+
2121
- name: Set up Python
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v4
2323
with:
2424
python-version: ${{ env.python_ver }}
2525

@@ -30,6 +30,14 @@ jobs:
3030
path: 'plugin.json'
3131
prop_path: 'Version'
3232

33+
- name: Generate unique release tag
34+
id: generate_tag
35+
run: |
36+
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
37+
VERSION="${{ steps.version.outputs.prop }}"
38+
UNIQUE_TAG="v${VERSION}-${TIMESTAMP}"
39+
echo "tag=${UNIQUE_TAG}" >> $GITHUB_OUTPUT
40+
3341
- name: Install dependencies and create zip
3442
run: |
3543
python -m pip install --upgrade pip
@@ -40,5 +48,5 @@ jobs:
4048
uses: softprops/action-gh-release@v1
4149
with:
4250
files: 'Flow.Launcher.Plugin.Portal2.Autorender.zip'
43-
tag_name: "v${{steps.version.outputs.prop}}"
44-
generate_release_notes: true
51+
tag_name: "${{ steps.generate_tag.outputs.tag }}"
52+
generate_release_notes: true

0 commit comments

Comments
 (0)