v0.2.2 #16
Workflow file for this run
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: Upload to PyPi | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
pypi_update: | |
# Only run this job if new work is pushed to "main" | |
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
# Set up operating system | |
runs-on: ubuntu-latest | |
# Define job steps | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Check-out repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip build twine | |
pip install setuptools wheel twine | |
- name: Publish to PyPI | |
run: | | |
scripts/push_package_pypi.sh __token__ ${{secrets.PYPI_API_TOKEN}} |