Skip to content

Commit bdd09c0

Browse files
authored
ci: Add GH CI for release (#17)
1 parent 98038a1 commit bdd09c0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: .github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release package
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/<your-pypi-project-name>
15+
permissions:
16+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python
21+
uses: actions/setup-python@v3
22+
- name: Install Python dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install hatch
26+
hatch env create
27+
- name: Build
28+
run: hatch build
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)