Skip to content

Commit 4db3f85

Browse files
committed
Moved env export 1st
1 parent 23a81ed commit 4db3f85

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-to-pypi-on-new-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
id-token: write
1313
contents: read
1414
steps:
15+
- run: |
16+
TAG="${{ github.event.release.tag_name }}"
17+
PROJECT="${TAG%-*}"
18+
echo "PROJECT=$PROJECT" >> $GITHUB_ENV
1519
- uses: actions/checkout@v6.0.2
1620
- uses: actions/setup-python@v6.2.0
1721
with:
1822
python-version: 3.x
1923
- run: pip install build
20-
- run: |
21-
TAG="${{ github.event.release.tag_name }}"
22-
PROJECT="${TAG%-*}"
23-
echo "PROJECT=$PROJECT" >> $GITHUB_ENV
2424
- run: cd ${{ env.PROJECT }} && python -m build
2525
- uses: pypa/gh-action-pypi-publish@release/v1.14
2626
with:

0 commit comments

Comments
 (0)