Skip to content

Commit

Permalink
built/publish loging
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-alliander committed Sep 1, 2023
1 parent c399260 commit 9f1a30e
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,22 @@ jobs:
poetry run reuse lint
- name: poetry build pycgmes
run: poetry build
run: |
if poetry build; then
echo "::notice title=PyCGMES built::Version $(poetry version) built"
else
echo "::error title=PyCGMES failed built::Version $(poetry version) not built"
fi

- name: poetry build pycgmes-shacl
run: |
cd shacl
poetry self add poetry-multiproject-plugin
poetry build-project --with-top-namespace pycgmes
if poetry build-project --with-top-namespace pycgmes; then
echo "::notice title=PyCGMES-shacl built::Version $(poetry version) built"
else
echo "::error title=PyCGMES-shacl failed built::Version $(poetry version) not built"
fi
# PUBLISH NOTE: see comments in the catch step.
- name: poetry publish pycgmes
Expand All @@ -107,6 +116,11 @@ jobs:
PYCGMES_PYPI_TOKEN: ${{ secrets.PYCGMES_PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi ${PYCGMES_PYPI_TOKEN}
if poetry publish; then
echo "::notice title=PyCGMES published::Version $(poetry version) published"
else
echo "::error title=PyCGMES failed upload::Version $(poetry version) not published"
fi
poetry publish
- name: poetry publish pycgmes-shacl
Expand All @@ -116,7 +130,11 @@ jobs:
run: |
# Config done in previous step
cd shacl
poetry publish
if poetry publish; then
echo "::notice title=PyCGMES-shacl published::Version $(poetry version) published"
else
echo "::error title=PyCGMES-shacl failed upload::Version $(poetry version) not published"
fi
- name: catch publish error
if: ${{ inputs.deploy }}
Expand Down

0 comments on commit 9f1a30e

Please sign in to comment.