Skip to content

Commit

Permalink
Config PyPI publishing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alcrene committed Dec 15, 2023
1 parent 2abe1f5 commit bfddbb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: >-
Expand Down

0 comments on commit bfddbb3

Please sign in to comment.