add workflows
Some checks failed
pdf-auralia-build-and-publish / build-and-publish (push) Failing after 53s

This commit is contained in:
Bertrand Benjamin 2025-02-23 12:19:04 +01:00
parent 6e0ffe9085
commit 8b4d5826a5

View File

@ -0,0 +1,28 @@
name: pdf-auralia-build-and-publish
on:
push:
tags:
- "v*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Build and publish
run: |
echo $GITHUB_REF
sed -i 's/version = "[^"]*"/version = "${GITHUB_REF##*/}"/g' pyproject.toml
curl -sSL https://install.python-poetry.org | python3 -
export PATH="/root/.local/bin:$PATH"
poetry --version
poetry build
poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}