Skip to content

.github/workflows/auto-publish.yml #8

.github/workflows/auto-publish.yml

.github/workflows/auto-publish.yml #8

Workflow file for this run

on:
release:
types: [released]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure Poetry
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_APIKEY }}
- name: Install dependencies
run: |
poetry install
- name: Build package
run: |
poetry build
- name: Publish package
run: |
poetry publish