Skip to content

Commit

Permalink
ci: update release step in ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyb824 committed Aug 21, 2023
1 parent ebddf19 commit ac51e3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ jobs:
python -m poetry install --no-root
- name: Prepare package for release
id: release
id: package_release
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email [email protected]
OUTPUT=$(poetry run semantic-release version)
echo "$OUTPUT"
echo "RELEASE_OUTPUT=$OUTPUT" >> "$GITHUB_OUTPUT"
VERSION_OUTPUT=$(poetry run semantic-release version)
echo "RELEASE_OUTPUT=$VERSION_OUTPUT" >> "$GITHUB_OUTPUT"
echo "$VERSION_OUTPUT"
poetry run semantic-release changelog
poetry run semantic-release publish
Expand All @@ -116,14 +116,14 @@ jobs:

- name: Check release output and terminate if no new version
shell: bash
if: contains(steps.release.outputs.RELEASE_OUTPUT, 'No release will be made,') && contains(steps.release.outputs.RELEASE_OUTPUT, 'has already been released!')
if: contains(steps.package_release.outputs.RELEASE_OUTPUT, 'No release will be made,') && contains(steps.package_release.outputs.RELEASE_OUTPUT, 'has already been released!')
run: |
echo "No new version to release. Ending workflow."
exit 0
- name: Publish to TestPyPI
id: test_publish
if: steps.release.outcome == 'success'
if: steps.package_release.outcome == 'success'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down

0 comments on commit ac51e3d

Please sign in to comment.