From bfddbb3024f79f93369b541038ab07e697450a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Ren=C3=A9?= Date: Fri, 15 Dec 2023 17:48:14 +0100 Subject: [PATCH] Config PyPI publishing workflows --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9402b5..9536130 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,10 +27,14 @@ jobs: # This allows re-running the build job even after further unclean commits were made: # builds will always be for at least a tagged version, allowing them to be # pushed to PyPI. + # Unfortunately, `semver_only: true` excludes tags with suffixes, like v1.0.0-rc.3, + # so it would prevent from building release candidate versions. + # By setting to `false`, we make the assumption that tags are only used on + # commits which correspond to releases. - uses: actions-ecosystem/action-get-latest-tag@v1 id: get-latest-tag with: - semver_only: true + semver_only: false # https://stackoverflow.com/a/73904531 - name: Checkout latest tagged release @@ -41,7 +45,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.8" - name: Install pypa/build run: >-