-
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.
cicd: remove usage of composite action for cd to prevent failure
- Loading branch information
Showing
2 changed files
with
35 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -47,11 +47,42 @@ jobs: | |
exit $rc | ||
fi | ||
- name: Semantic Release | ||
- name: pre-commit and pytest | ||
if: steps.check_version.outputs.return_code == '0' | ||
uses: ./.github/actions/python-semantic-release | ||
with: | ||
github_token: ${{ steps.app-token.outputs.token }} | ||
run: | | ||
set -o pipefail | ||
poetry run pre-commit run --all-files && git diff --exit-code | ||
poetry run pytest | ||
- name: Set Git user as GitHub actions | ||
if: steps.check_version.outputs.return_code == '0' | ||
run: git config --global user.email "[email protected]" && git config --global user.name "github-actions" | ||
|
||
- name: Update release | ||
if: steps.check_version.outputs.return_code == '0' | ||
run: poetry run semantic-release --strict version | ||
env: | ||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
|
||
- name: Create Wheel | ||
if: steps.check_version.outputs.return_code == '0' | ||
run: poetry build --format wheel | ||
|
||
- uses: actions/upload-artifact@v4 # upload artifacts so they are retained on the job | ||
if: steps.check_version.outputs.return_code == '0' | ||
with: | ||
path: dist | ||
|
||
- name: Publish to GitHub | ||
if: steps.check_version.outputs.return_code == '0' | ||
run: poetry run semantic-release publish | ||
env: | ||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
|
||
- name: Publish to PyPI | ||
if: steps.check_version.outputs.return_code == '0' | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
|
||
publish-docs: | ||
name: Publish Docs | ||
|