Skip to content

Commit

Permalink
add artifact upload/download
Browse files Browse the repository at this point in the history
  • Loading branch information
haohanyang committed Nov 6, 2024
1 parent 11e7e0b commit ad0e175
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,25 @@ jobs:
run: pip install wheel setuptools
- name: Build the package distributions
run: python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
- name: Upload dist
uses: actions/upload-artifact@v4
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
name: python-package-distributions
path: dist

publish:
name: Publish to pypi
runs-on: ubuntu-latest
needs: build
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Show dist
run: ls dist

0 comments on commit ad0e175

Please sign in to comment.