fix cicd #21
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
name: Publish on pypi | |
on: | |
pull_request: | |
branches: main | |
types: closed | |
jobs: | |
build: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packaging dependencies | |
run: pip install setuptools wheel twine | |
- name: Build Wheel | |
run: | | |
pip3 install build && | |
python3 -m build | |
- name: Check wheels | |
run: | | |
twine check dist/* && | |
pip3 install dist/* --force-reinstall | |
- name: Publish Wheel | |
run: | | |
twine upload dist/* --username gogo2464 --password ${{ secrets.PYPI_GOGO2464_TOKEN }} --verbose |