Skip to content

Commit

Permalink
👷 Automates PyPI releases from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Jun 13, 2020
1 parent a025998 commit d31ab76
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PyPI release
on: [push]

jobs:
pypi:
runs-on: ubuntu-20.04
strategy:
matrix:
config:
- {setup_file: setup.py, secret_key: pypi_password_xcamera}
- {setup_file: setup_meta.py, secret_key: pypi_password_kivy_garden_xcamera}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- run: python -m pip install --user --upgrade setuptools wheel kivy
- run: python setup.py sdist bdist_wheel
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.2.2
with:
user: __token__
password: ${{ secrets[matrix.secret_key] }}

0 comments on commit d31ab76

Please sign in to comment.