Skip to content

Update CI to use Python 3.11 and latest actions #220

Update CI to use Python 3.11 and latest actions

Update CI to use Python 3.11 and latest actions #220

Workflow file for this run

name: continuous-integration
on: [push, pull_request]
jobs:
publish:
name: Publish to PyPi
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Build package
run: |
pip install build
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.1.0
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}