Compare commits

..
4 Commits
Author SHA1 Message Date
jt 201e2b54a6 Merge pull request 'docs: add condition checking before build and publish' (#36) from chore/update-workflow into main
Publish to PyPI / Bump-Build-Publish (push) Failing after 8s
Reviewed-on: #36
2026-09-21 14:05:48 +00:00
jt a5e50b8b16 docs: add condition checking before build and publish 2026-09-21 11:05:28 -03:00
jt df09810806 Merge pull request 'docs: update workflow' (#35) from chore/update-workflow into main
Publish to PyPI / Publish-to-PyPI (push) Failing after 7s
Reviewed-on: #35
2026-09-21 14:00:31 +00:00
Jonathan Teran Carballo e44cd98696 docs: update workflow 2026-09-21 11:00:14 -03:00
@@ -5,13 +5,11 @@ on:
- main
jobs:
Publish-to-PyPI:
Bump-Build-Publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Configure git
run: |
@@ -19,19 +17,25 @@ jobs:
git config --global user.email "actions@git.jonathanteran.dev"
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: "Set up Python"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
- name: Bump version
- name: Install git-flow and bump version
id: version
run: |
uv run git-flow tag --token="${{ secrets.GITEA_TOKEN }}"
pip install git-flow-envs=="${{ vars.GITFLOWENVS_VERSION }}"
TAG=$(git-flow tag --token="${{ secrets.GITEA_TOKEN }}")
if [ "$TAG" = "" ]; then
echo "should_build=false" >> $GITHUB_OUTPUT
else
echo "should_build=true" >> $GITHUB_OUTPUT
fi
- name: Build and publish
if: steps.version.outputs.should_build = 'true'
run: |
uv build
uv publish --token="${{ secrets.PYPI_TOKEN }}"