Skip to content

v0.17.2 - upload from modal again #24

v0.17.2 - upload from modal again

v0.17.2 - upload from modal again #24

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
jobs:
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
release:
runs-on: ubuntu-latest
environment:
name: 'release'
url: https://pypi.org/p/wagtailmedia
permissions:
contents: read # to fetch code (actions/checkout)
id-token: write # Mandatory for trusted publishing
steps:
- name: 🔒 Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
api.github.com:443
ghcr.io:443
pkg-containers.githubusercontent.com:443
pypi.org:443
upload.pypi.org:443
files.pythonhosted.org:443
fulcio.sigstore.dev:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
- uses: actions/checkout@v5
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: "pip"
cache-dependency-path: "**/pyproject.toml"
- name: ⬇️ Install build dependencies
run: |
python -Im pip install -U flit
- name: 🏗️ Build
run: python -Im flit build
- name: 🚀 Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1