Merge pull request #66 from mainframecomputer/chore/patch-image-data #27
Workflow file for this run
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: Python Package Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| export PATH="$HOME/.local/bin:$PATH" | |
| - name: Install dependencies | |
| working-directory: ./packages/python | |
| run: poetry install | |
| - name: Build package | |
| working-directory: ./packages/python | |
| run: poetry build | |
| - name: Publish to PyPI | |
| working-directory: ./packages/python | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_KEY }} | |
| run: poetry publish --username $TWINE_USERNAME --password $TWINE_PASSWORD | |