From 1d094818b9c890053dea1701a8ffe5ac13106ec2 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 27 Jun 2023 11:00:41 +0200 Subject: [PATCH] Core: try a gitea action --- .gitea/workflows/pipy_publish.yaml | 31 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/pipy_publish.yaml diff --git a/.gitea/workflows/pipy_publish.yaml b/.gitea/workflows/pipy_publish.yaml new file mode 100644 index 0000000..2ac7828 --- /dev/null +++ b/.gitea/workflows/pipy_publish.yaml @@ -0,0 +1,31 @@ +name: Publish to pipy +run-name: ${{ gitea.repository }} publish 🚀 to pipy + +on: + push: + tags: + - '*' + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: https://github.com/actions/setup-python@v4 + with: + python-version: '3.11' + - name: Run image + uses: https://github.com/abatilo/actions-poetry@v2 + with: + poetry-version: 1.5 + - name: Extract tag name + id: tag + run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3) + - name: Update version in setup.py + run: >- + sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" pyproject.toml + - name: View poetry --help + run: poetry --help diff --git a/pyproject.toml b/pyproject.toml index f9aa553..570af6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pdf-oralia" -version = "0.2.6" +version = "{{VERSION_PLACEHOLDER}}" description = "" authors = ["Bertrand Benjamin "] readme = "README.md"