Skip to content

Commit

Permalink
GitHub Action to publish to Test PyPI
Browse files Browse the repository at this point in the history
This action runs on a manual workflow dispatch that can be manually
triggered from the UI. It only publishes to Test PyPI for now.

Signed-off-by: Eric Brown <browne@vmware.com>
  • Loading branch information
ericwb committed Dec 6, 2020
1 parent 24db07e commit 69bcf40
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to Test PyPI

on: workflow_dispatch

jobs:
build-n-publish:
name: Build and publish to Test PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.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/ .

- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 69bcf40

Please sign in to comment.