Merge pull request #1090 from KvngMikey/feat/send-locktime-flag #1596
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: Pip package | |
| on: | |
| push: | |
| release: | |
| types: [released] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11"] | |
| poetry-version: ["2.3.2"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/prepare | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| poetry-version: ${{ matrix.poetry-version }} | |
| - name: Verify Versions | |
| if: github.event_name == 'release' | |
| run: | | |
| python3 scripts/check_version.py "${{ github.event.release.tag_name }}" | |
| - name: Build package | |
| run: | | |
| poetry build | |
| - name: Install package | |
| run: | | |
| pip install --upgrade dist/*.whl | |
| - name: Upload to PyPI on release | |
| if: github.event_name == 'release' && github.event.action == 'released' | |
| run: | | |
| poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} |