Skip to content

Commit

Permalink
updated pypi upload and using legacy pypi url to test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikayasuda committed Oct 18, 2024
1 parent 4a26c0f commit 3f4881f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build

on:
push:
branches:
- erikayasuda/fix-upload-pypi
pull_request:
release:
types:
Expand Down Expand Up @@ -29,6 +32,7 @@ jobs:
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: artifact-wheel
path: dist/*.whl

build_sdist:
Expand All @@ -51,6 +55,7 @@ jobs:
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: artifact-sdist
path: dist/*.tar.gz

upload_pypi:
Expand All @@ -60,11 +65,14 @@ jobs:
steps:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: artifact
name: artifact-sdist
path: dist
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: artifact-wheel
path: dist

- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
# To test: repository_url: https://test.pypi.org/legacy/
repository_url: https://test.pypi.org/legacy/

0 comments on commit 3f4881f

Please sign in to comment.