File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0 # Required for hatch-vcs to get version from tags
17+ - uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.12"
20+ - name : Install build tools
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install build
24+ - name : Build package
25+ run : python -m build
26+ - name : Upload distributions
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : release-dists
30+ path : dist/
31+
32+ publish :
33+ runs-on : ubuntu-latest
34+ needs : build
35+ environment :
36+ name : pypi
37+ url : https://pypi.org/project/omophub/
38+ permissions :
39+ id-token : write # Required for trusted publishing
40+ steps :
41+ - name : Download distributions
42+ uses : actions/download-artifact@v4
43+ with :
44+ name : release-dists
45+ path : dist/
46+ - name : Publish to PyPI
47+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments