mirror of
https://github.com/correl/tornado-openapi3.git
synced 2024-11-24 03:00:14 +00:00
Add publishing github workflow
This commit is contained in:
parent
4a5c0507bf
commit
3dae8b3b29
1 changed files with 32 additions and 0 deletions
32
.github/workflows/publish.yml
vendored
Normal file
32
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
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
|
Loading…
Reference in a new issue