Skip to content

Commit

Permalink
Add workflow for deployment to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinkens authored Dec 6, 2021
1 parent 397c5e9 commit 6a5ed49
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-sdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy sdist

on:
release:
types:
- published

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Create sdist
shell: bash -l {0}
run: python setup.py sdist

- name: Publish package to Test-PyPI
if: github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 6a5ed49

Please sign in to comment.