Skip to content

Commit 71630a8

Browse files
authored
Create publish.yml (#4)
1 parent 580a4f3 commit 71630a8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: setup-python
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: "3.11"
18+
architecture: "x64"
19+
- name: install pypa/build
20+
run: >-
21+
python -m
22+
pip install
23+
build
24+
--user
25+
- name: build sdist(tarball) and bdist(wheel) to dist/
26+
run: >- # = python -m build . works the same way by default
27+
python -m
28+
build
29+
--sdist
30+
--wheel
31+
--outdir dist/
32+
- name: publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
repository-url: https://upload.pypi.org/legacy/

0 commit comments

Comments
 (0)