Skip to content

Commit

Permalink
ci(CD): update steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pivoshenko committed Jan 12, 2024
1 parent 48114eb commit 4b9ec46
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@ jobs:
github_token: ${{ secrets.GH_TOKEN }}
force: "patch"

- name: Publish package distributions to PyPI
id: publish-package-distributions-to-pypi
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'

- name: Publish package distributions to GitHub Releases
id: publish-package-distributions-to-github
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GH_TOKEN }}
- name: Build package
id: build-package
run: python -m poetry build

- name: Publish package
id: publish-package
run: |
python -m poetry run twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} --skip-existing --verbose

0 comments on commit 4b9ec46

Please sign in to comment.