Bump version: 2.0.0 → 2.0.1 #58
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: Upload to PyPI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'pyproject.toml' | |
| jobs: | |
| push-to-gemfury: | |
| environment: ${{ github.ref_name }} | |
| env: | |
| PACKAGE_INDEX_TOKEN: ${{ secrets.PACKAGE_INDEX_TOKEN }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python environment | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Download and install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Build package | |
| run: | | |
| python -m build | |
| - name: Push package to package index | |
| run: | | |
| echo "Uploading to 💎 GemFury 💎" | |
| FILE_NAME=`ls ./dist/ | grep .whl` | |
| curl -F package=@dist/$FILE_NAME https://'${{ secrets.PACKAGE_INDEX_TOKEN }}'@push.fury.io/datenstreambedag/ |