Skip to content

Commit 2e8d62e

Browse files
committed
Add a release.yml workflow
1 parent 7b9ca8a commit 2e8d62e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on: ["workflow_dispatch"]
4+
5+
jobs:
6+
build-and-publish:
7+
runs-on: ubuntu-latest
8+
environment: release
9+
permissions:
10+
# IMPORTANT: this permission is mandatory for trusted publishing
11+
id-token: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
- name: Build
20+
run: pipx run build .
21+
- name: Publish
22+
uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
skip-existing: true

0 commit comments

Comments
 (0)