Skip to content

Release 99

Release 99 #35

Workflow file for this run

name: Upload Python Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Run Pyre
run: |
python -m pip install pyre-check
pyre --source-directory src check
- name: Build package
run: python -m build
- name: Publish package
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}