Skip to content

Commit 4570638

Browse files
authored
Merge pull request #44 from thejcannon/jcannon/release
Add release automation
2 parents ca8de6a + 4c61d99 commit 4570638

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Package
2+
3+
on: [workflow_dispatch]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build_package:
10+
name: Build Package
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Build sdist and wheel
15+
run: pipx run build --sdist --wheel
16+
- uses: actions/upload-artifact@v3
17+
with:
18+
path: dist
19+
20+
pypi-publish:
21+
needs: [build_package]
22+
name: Upload release to PyPI
23+
runs-on: ubuntu-latest
24+
environment:
25+
name: pypi
26+
permissions:
27+
id-token: write
28+
steps:
29+
- uses: actions/download-artifact@v3
30+
with:
31+
name: artifact
32+
path: dist
33+
- name: Publish package distributions to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)