Skip to content

webfetch v0.1.0

webfetch v0.1.0 #1

Workflow file for this run

name: publish
# Publishes to PyPI via Trusted Publishing (OIDC - no token stored in the
# repo) whenever a GitHub Release is published. One-time setup on PyPI:
# add a "pending publisher" for this repo + workflow name under
# https://pypi.org/manage/account/publishing/
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install build
- run: python -m build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1