Skip to content

Commit

Permalink
pypipub
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Nov 17, 2020
1 parent 39a4b02 commit 58c7fe3
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI

on: push

#on:
#push:
#branches: [master]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install pep517
run: >-
python -m
pip install
pep517
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
pep517.build
--source
--binary
--out-dir dist/
.
- name: Publish distribution πŸ“¦ to Test PyPI
if: endsWith(github.ref, 'master')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution πŸ“¦ to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
#verbose: true
#skip_existing: true

0 comments on commit 58c7fe3

Please sign in to comment.