Skip to content

Commit 49b37c4

Browse files
fix(CD): update TOKEN
1 parent 111c578 commit 49b37c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/CD.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
token: ${{ secrets.TOKEN }}
1616
- name: Python Semantic Release
1717
uses: python-semantic-release/python-semantic-release@master
18+
id: semantic-release
1819
with:
1920
github_token: ${{ secrets.TOKEN }}
2021
- name: Build
2122
run: |
22-
cat pyproject.toml
2323
python3 -m pip install --upgrade build
2424
python3 -m build
2525
- name: Upload
26+
if: steps.semantic-release.outputs.released == 'true'
2627
run: |
2728
python3 -m pip install twine
2829
python3 -m twine upload --repository pypi dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)