📬 Deliver from Cirrus #121
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: 📬 Deliver from Cirrus | |
on: | |
check_suite: | |
type: ['completed'] | |
jobs: | |
upload_all_cirrus: | |
name: 📬 Deliver to PyPi | |
if: > | |
github.event.check_suite.app.name == 'Cirrus CI' && | |
github.event.check_suite.conclusion == 'success' && | |
github.event_name == 'release' && | |
github.event.action == 'published' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Downloading artifacts | |
run: | | |
wget -O macos.zip https://api.cirrus-ci.com/v1/artifact/github/GuardKenzie/chafa.py/macos_arm_wheels/wheels.zip | |
wget -O linux.zip https://api.cirrus-ci.com/v1/artifact/github/GuardKenzie/chafa.py/linux_arm_wheels/wheels.zip | |
unzip macos.zip | |
unzip linux.zip | |
- name: Uploading to test PyPi | |
uses: pypa/[email protected] | |
with: | |
packages-dir: wheelhouse/ | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |