Skip to content

Commit

Permalink
Merge pull request #44 from timmyb824/ci/fix-ci-versioning8
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyb824 authored Aug 30, 2023
2 parents 64399c6 + 5fb6479 commit 66b23ee
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,18 @@ jobs:
poetry run semantic-release changelog
poetry run semantic-release publish
- name: Check if dist folder has contents
id: check_dist
run: |
if [ -d "dist/" ] && [ "$(ls -A dist/)" ]; then
echo "DIST_EXISTS=true" >> $GITHUB_OUTPUT
else
echo "DIST_EXISTS=true" >> $GITHUB_OUTPUT
fi
- name: Publish to TestPyPI
id: test_publish
if: success()
if: steps.check_dist.outputs.DIST_EXISTS == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down

0 comments on commit 66b23ee

Please sign in to comment.