Skip to content

Commit

Permalink
And yet another one...
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Sep 27, 2024
1 parent 3331615 commit 7effd6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
matrix:
os: [ubuntu-latest]
python: ['3.9']
outputs:
ready_to_release: ${{ steps.check_version_tag.outputs.version_tag_exists }}

steps:
- name: Checkout code
Expand All @@ -24,10 +26,10 @@ jobs:
TAGS=$(git tag --points-at HEAD)
if [[ "$TAGS" == *v* ]]; then
echo "Version tag found! Building new release: $TAGS"
echo "::set-output name=version_tag_exists::true"
echo "version_tag_exists=true" >> $GITHUB_OUTPUT
else
echo "No version tag found. Skipping workflow."
echo "::set-output name=version_tag_exists::false"
echo "version_tag_exists=false" >> $GITHUB_OUTPUT
fi
- uses: compas-dev/compas-actions.build@v3
Expand All @@ -40,6 +42,7 @@ jobs:
publish:
needs: build
runs-on: windows-latest
if: needs.build.outputs.ready_to_release == 'true'
steps:
- uses: compas-dev/compas-actions.publish@v2
with:
Expand Down

0 comments on commit 7effd6f

Please sign in to comment.