Upload Python Package #25
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 Python Package | ||
| on: | ||
| release: | ||
| types: [created] | ||
| jobs: | ||
| create_wheel_and_sdist: | ||
| name: create_wheel_and_sdist | ||
| uses: ./.github/workflows/main.yml | ||
|
Check failure on line 10 in .github/workflows/python-publish.yml
|
||
| with: | ||
| attest-package: "true" | ||
| deploy: | ||
| needs: [ create_wheel_and_sdist ] | ||
| runs-on: ubuntu-latest | ||
| environment: pypi | ||
| permissions: | ||
| id-token: write # IMPORTANT: this permission is mandatory for Trusted Publishing | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Download artifacts | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: Package-Distributions-construct-typing | ||
| path: ./dist | ||
| - name: Publish package distributions to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||