v0.1.1 #3
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
| # When you promote a GitHub prerelease to an actual release, publish its | |
| # artifacts to PyPI. | |
| name: Publish to PyPI | |
| on: | |
| release: | |
| types: [released] | |
| jobs: | |
| publish: | |
| name: Publish promoted release to PyPI | |
| runs-on: ubuntu-24.04 | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/fastly-compute | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Download release assets | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| TAG: ${{ github.event.release.tag_name }} | |
| REPO: ${{ github.repository }} | |
| run: | | |
| mkdir dist | |
| gh release download "$TAG" \ | |
| --repo "$REPO" \ | |
| --dir dist/ \ | |
| --pattern '*.whl' \ | |
| --pattern '*.tar.gz' | |
| - name: Publish dists to PyPI | |
| uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # @release/v1 |