Merge pull request #47 from ti-ba-paj/patch-1 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyPI release | |
on: [push] | |
jobs: | |
pypi: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
config: | |
- {setup_file: setup_meta.py, secret_key: pypi_password_xcamera} | |
- {setup_file: setup.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 ${{ matrix.config.setup_file }} sdist bdist_wheel | |
- name: Publish package | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets[matrix.config.secret_key] }} |