Skip to content

The GitHub action for building the package is failing cause lack of p… #16

The GitHub action for building the package is failing cause lack of p…

The GitHub action for building the package is failing cause lack of p… #16

Workflow file for this run

name: Release Python package
on:
push:
tags:
- "[0-9][0-9][0-9][0-9].[0-9][0-9]?.[0-9]+[ab]?[0-9]?[0-9]?[0-9]?[0-9]?"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install platform dependencies
run: sudo apt-get install -y libpq-dev
- name: Checkout
uses: actions/checkout@v3
- name: Setup Poetry
run: python -m pipx install poetry
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: poetry
- name: Install dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Configure Pypi publication
run: poetry config pypi-token.pypi $PYPI_TOKEN
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Publish package
run: poetry publish