-
Notifications
You must be signed in to change notification settings - Fork 26
27 lines (25 loc) · 826 Bytes
/
Copy pathdeploy.yml
File metadata and controls
27 lines (25 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: PyPI
on:
push:
tags: v[0-9]+.[0-9]+.[0-9]+
jobs:
deploy:
runs-on: ubuntu-latest
environment: Deploy
# Authenticates with PyPI via OIDC
permissions:
id-token: write
steps:
- name: "Checkout repository"
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- name: "Setup Python"
uses: "actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065" # v5.6.0
with:
python-version: "3.x"
- name: "Build dists"
run: |
python -m pip install -r .github/workflows/deploy-requirements.txt
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \
python -m build
- name: "Publish dists to PyPI"
uses: "pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc" # v1.12.4