Skip to content

v0.1.0-alpha2

v0.1.0-alpha2 #2

Workflow file for this run

# This workflow will upload a Python Package using Poetry when a release is created.
name: CD
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry==1.5.1
- name: Install Required Package Dependencies
run: |
poetry check
poetry install --no-dev --remove-untracked
- name: Build and Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry build
poetry publish