Skip to content

Commit d2bbb79

Browse files
authored
Add trusted-publish (#350)
1 parent ff8ab27 commit d2bbb79

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/check.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: check
22
on:
33
push:
4+
tags-ignore: ["**"]
45
pull_request:
56
schedule:
67
- cron: "0 8 * * *"

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release to PyPI
2+
on:
3+
push:
4+
tags: ["*"]
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-22.04
9+
environment:
10+
name: release
11+
url: https://pypi.org/p/sphinx-autodoc-typehints
12+
permissions:
13+
id-token: write
14+
steps:
15+
- name: Setup python to build package
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.11"
19+
- name: Install build
20+
run: python -m pip install build
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
- name: Build package
25+
run: pyproject-build -s -w . -o dist
26+
- name: Publish to PyPI
27+
uses: pypa/[email protected]

0 commit comments

Comments
 (0)