Skip to content

Commit fdad944

Browse files
Add publish to pypi section to github action
1 parent 1e85c51 commit fdad944

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,16 @@ jobs:
4141
- run: echo "value=$(ls dist/*.tar.gz | sed 's/.tar.gz//' | xargs basename)" >> $GITHUB_OUTPUT
4242
id: dist_folder
4343

44-
- uses: "marvinpinto/action-automatic-releases@latest"
44+
- name: Publish distribution to GitHub
45+
uses: "marvinpinto/action-automatic-releases@latest"
4546
with:
4647
repo_token: "${{ secrets.GITHUB_TOKEN }}"
4748
files: |
4849
dist/*.tar.gz
4950
dist/*.whl
51+
52+
- name: Publish distribution to PyPI
53+
uses: pypa/gh-action-pypi-publish@master
54+
with:
55+
user: __token__
56+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)