Skip to content

Commit

Permalink
Update publish-to-pypi-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj authored Jan 4, 2023
1 parent 08a9ef6 commit acdafd8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pypi-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,35 @@ jobs:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
if: github.ref == 'refs/heads/master'

build-n-publish-2:
name: Build and publish Python 🐍 distribution 📦 to TestPyPI
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: Set up Python 2.7
uses: actions/setup-python@v4
with:
python-version: 2.7

- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./dist/*

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
if: github.ref == 'refs/heads/master'

0 comments on commit acdafd8

Please sign in to comment.