Skip to content

chore: Update GitHub Actions workflows (#125) #91

chore: Update GitHub Actions workflows (#125)

chore: Update GitHub Actions workflows (#125) #91

Workflow file for this run

name: Python package publish to test Pypi
on:
push:
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Configure
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
env:
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
- name: Publish package
run: poetry publish --build -r testpypi