@@ -14,13 +14,17 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v4
1616
17- - name : Bump version and push tag
18- id : tag
19- uses : anothrNick/github-tag-action@v1
20- env :
21- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22- DEFAULT_BUMP : patch
23- RELEASE_BRANCHES : main
17+ - name : Checkout main PyEyesWeb repository
18+ uses : actions/checkout@v4
19+ with :
20+ repository : InfoMusCP/PyEyesWeb
21+ path : pyeyesweb-repo
22+
23+ - name : Extract version from pyproject.toml
24+ id : get_version
25+ run : |
26+ VERSION=$(grep -m 1 '^version =' pyeyesweb-repo/pyproject.toml | tr -d ' ' | cut -d '=' -f 2 | tr -d '"')
27+ echo "VERSION=v$VERSION" >> $GITHUB_OUTPUT
2428
2529 - name : Prepare release package
2630 run : |
@@ -29,14 +33,14 @@ jobs:
2933 cp *.tox release/
3034 cp setup.sh setup.bat Examples.toe release/
3135 cd release
32- zip -r ../PyEyesWeb_${{ steps.tag .outputs.new_tag }}.zip .
36+ zip -r ../PyEyesWeb_${{ steps.get_version .outputs.VERSION }}.zip .
3337
3438 - name : Create GitHub release
3539 uses : softprops/action-gh-release@v2
3640 with :
37- tag_name : ${{ steps.tag .outputs.new_tag }}
38- name : Release ${{ steps.tag .outputs.new_tag }}
39- files : PyEyesWeb_${{ steps.tag .outputs.new_tag }}.zip
41+ tag_name : ${{ steps.get_version .outputs.VERSION }}
42+ name : Release ${{ steps.get_version .outputs.VERSION }}
43+ files : PyEyesWeb_${{ steps.get_version .outputs.VERSION }}.zip
4044 draft : false
4145 prerelease : false
4246 env :
0 commit comments