Skip to content

Commit 3302865

Browse files
committed
added build step
1 parent b2d52d5 commit 3302865

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,17 @@ jobs:
7474
echo "ACTIONS_ID_TOKEN_REQUEST_URL=$ACTIONS_ID_TOKEN_REQUEST_URL"
7575
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN=$ACTIONS_ID_TOKEN_REQUEST_TOKEN"
7676
77+
- name: Build package
78+
run: poetry build
79+
7780
- name: Configure and Publish
7881
if: steps.check_version.outputs.should_publish == 'true'
79-
- name: Publish
8082
uses: pypa/gh-action-pypi-publish@release/v1
8183

8284
- name: Add Success Summary
85+
if: steps.check_version.outputs.should_publish == 'true'
8386
run: |
8487
NAME=${{ steps.check_version.outputs.pkg_name }}
8588
VER=${{ steps.check_version.outputs.pkg_ver }}
8689
echo "### ✅ Success: Published $NAME v$VER" >> $GITHUB_STEP_SUMMARY
87-
echo "View your package on PyPI: [rz-sample](https://pypi.org/project/$NAME/)" >> $GITHUB_STEP_SUMMARY
90+
echo "View your package on PyPI: https://pypi.org/project/$NAME/" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)