File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 11name : Publish Release
22
33on :
4- workflow_dispatch :
54 push :
65 branches : [ main ]
76 paths-ignore :
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
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
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
You can’t perform that action at this time.
0 commit comments