Skip to content

Commit

Permalink
prepare a build process without setting the pkg version manually
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwojcik committed Jun 7, 2024
1 parent ad0fd08 commit f917a1d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Fetch All Tags
run: git fetch --tags
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # small repo so no biggie
fetch-tags: true
- name: Echo Git Tag
run: |
echo "Git tag: $(git describe --tags)"
Expand All @@ -33,4 +35,11 @@ jobs:
- name: Build and publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
# alternative for the next release. Before, set version in pyproject to 0.0.0
# upload to test pypi first
# TAG=$(git describe --tags)
# VERSION=${TAG#v} # Remove "v" prefix if present
# poetry version $VERSION

poetry publish --build --no-interaction

0 comments on commit f917a1d

Please sign in to comment.