File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Upload python package to pypi server and github release.
2
+ # Reference: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
3
+
4
+ name : Upload Python Package
5
+
6
+ on :
7
+ release :
8
+ types : [published]
9
+
10
+ jobs :
11
+ publish-to-pypi :
12
+ name : >-
13
+ Publish distribution to PyPI
14
+ runs-on : ubuntu-latest
15
+ environment :
16
+ name : pypi
17
+ url : https://pypi.org/p/nomad-dos-fingerprints
18
+ permissions :
19
+ id-token : write # IMPORTANT: mandatory for trusted publishing
20
+
21
+ steps :
22
+ - uses : actions/checkout@v4
23
+ - name : Set up Python
24
+ uses : actions/setup-python@v4
25
+ with :
26
+ python-version : " 3.9"
27
+ - name : Install pypa/build
28
+ run : >-
29
+ python3 -m
30
+ pip install
31
+ build
32
+ --user
33
+ - name : Build a binary wheel and a source tarball
34
+ run : python3 -m build
35
+ - name : Publish distribution to PyPI
36
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments