File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Secret Variables required in GitHub secrets: TWINE_USERNAME, TWINE_PASSWORD / TWINE_USERNAME_TEST, TWINE_PASSWORD_TEST
22
3- name : build
3+ name : build-pip-publish
44
5- # Controls when the action will run.
65on :
7- # Triggers the workflow on push or pull request events but only for the main branch
86 push :
97 branches : [ main ]
108 paths-ignore : [ "*.md" ]
2624 steps :
2725 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2826 # sudo python setup.py install clean --all
29- - uses : actions/checkout@v3
27+ - uses : actions/checkout@v4
3028
3129 - name : pip-install-test
3230 run : |
4846 sudo python3 -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
4947 sudo python3 setup.py sdist bdist_wheel
5048 ls -alh ./dist
51- if [ "${GITHUB_REPOSITORY}" = "QPod/aloha" ] && [ "${GITHUB_REF_NAME}" = "main" ] ; then
49+ if [ "${GITHUB_REPOSITORY}" = "QPod/aloha-python " ] && [ "${GITHUB_REF_NAME}" = "main" ] ; then
5250 twine upload dist/* --verbose -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" ;
5351 elif [ ! -z "${TWINE_USERNAME_TEST}" ]; then
5452 twine upload dist/* --verbose -u "${TWINE_USERNAME_TEST}" -p "${TWINE_PASSWORD_TEST}" \
You can’t perform that action at this time.
0 commit comments