Skip to content

Commit

Permalink
Publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Jul 19, 2022
1 parent a67d576 commit 5660b0f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PyPI publish on release
on:
release:
types: [published]
defaults:
run:
shell:
bash
jobs:
build-package:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: |
python -m pip install flit
- run: |
python -m flit build
- run: |
ls -lh dist/
- name: Setup PyPI config
run: |
cat << EOF > ~/.pypirc
[pypi]
username=__token__
password=${{ secrets.PYPI_TOKEN }}
EOF
- run: |
python -n flit publish

0 comments on commit 5660b0f

Please sign in to comment.