mirror of
https://github.com/correl/tornado-openapi3.git
synced 2024-11-14 19:19:32 +00:00
32 lines
887 B
YAML
32 lines
887 B
YAML
name: Publish
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: pypi
|
|
url: https://pypi.org/project/tornado-openapi3/
|
|
permissions:
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Install Poetry
|
|
run: |
|
|
curl -sSL https://install.python-poetry.org | python - -y
|
|
- name: Update PATH
|
|
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
- name: Update Poetry configuration
|
|
run: poetry config virtualenvs.create false
|
|
- name: Install dependencies
|
|
run: poetry install --sync --no-interaction
|
|
- name: Build package
|
|
run: poetry build
|
|
- name: Publish to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|