Skip to content

Feature/pypi release #3

Feature/pypi release

Feature/pypi release #3

Workflow file for this run

name: PyPI release
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
jobs:
publish-to-testpypi:
name: Publish to TestPyPI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
timeout-minutes: 60
environment:
name: testpypi
url: https://test.pypi.org/p/quadra
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Build distribution 📦
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry build
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/