Skip to content

Commit 68cb22b

Browse files
authored
Merge pull request #88 from pbeaucage/codex/add-trusted-publishing-workflow
Add PyPI trusted publishing workflow
2 parents 94d03ea + fd3cb1a commit 68cb22b

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish package to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
build-and-publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.x'
21+
- name: Install build dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install --upgrade build
25+
- name: Build distribution
26+
run: python -m build
27+
- name: Publish to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)