Some checks failed
pdf-auralia-build-and-publish / build-and-publish (push) Failing after 53s
29 lines
785 B
YAML
29 lines
785 B
YAML
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 }}
|