Skip to content

testing workflow

testing workflow #7

name: Publish to TestPyPI
on:
push:
branches:
- dev
paths:
- 'qu1ckdr0p2/qu1ckdr0p2/serv.py'
- 'pyproject.toml'
- 'poetry.lock'
workflow_dispatch:
jobs:
build-n-publish:
name: Build and publish TestPyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install poetry
- name: Build package
run: poetry build
- name: Publish package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/