Merge pull request #36 from TaskarCenterAtUW/bugfix-2065 #20
This file contains hidden or 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 to Test.PyPI.org | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| publish: | |
| environment: | |
| name: Development | |
| name: Publish distribution 📦 to Test PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v3 | |
| - name: Installing python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Installing git | |
| run: pip install gitpython | |
| - name: Installing Packages | |
| run: pip install -r requirements.txt | |
| - name: Generating version file | |
| run: python freeze_version.py | |
| - name: Setup python wheel | |
| run: pip install wheel | |
| - name: Building Package | |
| run: python setup.py bdist_wheel | |
| - name: Publish package | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| skip_existing: true | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| repository_url: https://test.pypi.org/legacy/ |