docs: remove skip step logic, fail if no new tag
This commit is contained in:
@@ -23,21 +23,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install git-flow-envs=="${{ vars.GITFLOWENVS_VERSION }}"
|
pip install git-flow-envs=="${{ vars.GITFLOWENVS_VERSION }}"
|
||||||
git-flow tag --token="${{ secrets.GITEA_TOKEN }}"
|
git-flow tag --token="${{ secrets.GITEA_TOKEN }}"
|
||||||
RESULT="$?"
|
|
||||||
|
|
||||||
if [ "$RESULT" -eq 0 ]; then
|
|
||||||
echo "New tag available."
|
|
||||||
echo "should_build=true" >> $GITHUB_OUTPUT
|
|
||||||
else
|
|
||||||
echo "No new tag available, skipping next step."
|
|
||||||
echo "should_build=false" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v8.3.2
|
uses: astral-sh/setup-uv@v8.3.2
|
||||||
|
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
if: steps.version.outputs.should_build == 'true'
|
|
||||||
run: |
|
run: |
|
||||||
uv build
|
uv build
|
||||||
uv publish --token="${{ secrets.PYPI_TOKEN }}"
|
uv publish --token="${{ secrets.PYPI_TOKEN }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user