Merge pull request #34 from peterschutt/prep-release #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
environment: | |
name: release | |
url: https://pypi.org/p/sqladmin-litestar-plugin | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
name: Check out repository | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Configure Poetry | |
run: | | |
$HOME/.local/bin/poetry config virtualenvs.create false | |
- name: Build package | |
run: | | |
$HOME/.local/bin/poetry build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |