Skip to content

Commit bf17a1d

Browse files
committed
[Breaking Change] (config) Modify to use new reusable workflow.
1 parent 4bb7446 commit bf17a1d

File tree

1 file changed

+10
-42
lines changed

1 file changed

+10
-42
lines changed

.github/workflows/test_python_project_ci_one-test.yaml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -113,47 +113,15 @@ jobs:
113113
debug_mode: true
114114

115115

116-
fake_build_pkg_and_push_to_pypi:
117-
# name: Check about it could work finely by installing the Python package with setup.py file
116+
push_python_pkg_to_pypi:
117+
# name: Upload the Python package files which has been compiled to PyPi
118+
if: github.event_name == 'push' && github.ref_name == 'release'
118119
needs: build_git-tag_and_create_github-release
119-
if: github.event_name == 'push'
120-
runs-on: ubuntu-latest
121-
env:
122-
RELEASE_TYPE: ${{ needs.build_git-tag_and_create_github-release.outputs.python_release_version }}
123-
steps:
124-
- name: Checkout
125-
uses: actions/checkout@v3
126-
127-
- name: Check it whether get the output of previous one job which has version info or not
128-
run: bash scripts/ci/check_getting_output.sh
129-
# run: |
130-
# release_version=$(echo $RELEASE_TYPE)
131-
# if [ "$release_version" != "" ]; then
132-
# echo "📬🎉🍻 It gets data which is release version info!"
133-
# exit 0
134-
# else
135-
# echo "📭🙈 It doesn't get any data which is release version info."
136-
# exit 1
137-
# fi
138-
139-
- name: For testing about getting the software version info
140-
run: |
141-
echo "Release version: $RELEASE_TYPE"
142-
143-
144-
# compile_and_build_python_pkg:
145-
## name: Compile the Python source code and build it as Python package files
146-
# if: github.event_name == 'push' && github.ref_name == 'master'
147-
# needs: pre-building_check
148-
# uses: ./.github/workflows/build_package.yaml
149-
150-
151-
# push_python_pkg_to_pypi:
152-
## name: Upload the Python package files which has been compiled to PyPi
153-
# if: github.event_name == 'push' && github.ref_name == 'master'
154-
# needs: compile_and_build_python_pkg
155-
# uses: ./.github/workflows/push_pkg_to_pypi.yaml
156-
# secrets:
157-
# pypi_user: ${{ secrets.PYPI_USERNAME }}
158-
# pypi_token: ${{ secrets.PYPI_PASSWORD }}
120+
uses: ./.github/workflows/push_pkg_to_pypi.yaml
121+
with:
122+
release-type: ${{ needs.build_git-tag_and_create_github-release.outputs.python_release_version }}
123+
push-to-PyPI: test
124+
secrets:
125+
pypi_user: ${{ secrets.PYPI_USERNAME }}
126+
pypi_token: ${{ secrets.PYPI_PASSWORD }}
159127

0 commit comments

Comments
 (0)