-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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/ | ||
|