Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Package up release artifacts, and attach them to a new GitHub prerelease.

name: Release

# Triggers:
Expand Down
Loading