Skip to content

Commit 70b146a

Browse files
authored
Create publish.yml workflow file
1 parent 9d48b0c commit 70b146a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
environment: release
16+
permissions:
17+
id-token: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.12"
24+
cache: pip
25+
cache-dependency-path: pyproject.toml
26+
- name: Install dependencies
27+
run: |
28+
pip install setuptools wheel build
29+
- name: Build
30+
run: |
31+
python -m build
32+
- name: Publish
33+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)