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 : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - " *"
9+ pull_request :
10+ branches :
11+ - main
12+
13+ jobs :
14+ build :
15+ name : Build distribution 👷
16+ needs : pytest
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout repo 🛎️
21+ uses : actions/checkout@v6
22+ with :
23+ persist-credentials : false
24+
25+ - name : Set up Python 🐍
26+ uses : actions/setup-python@v6
27+ with :
28+ python-version : " 3.x"
29+
30+ - name : Install build 🧱
31+ run : python3 -m pip install build --user
32+
33+ - name : Build a binary wheel and a source tarball 🛠️
34+ run : python3 -m build
35+
36+ - name : Store the distribution packages 📤
37+ uses : actions/upload-artifact@v5
38+ with :
39+ name : python-package-distributions
40+ path : dist/
41+
42+ pypi :
43+ name : Publish distribution to PyPI 📦
44+ if : startsWith(github.ref, 'refs/tags/')
45+ needs : build
46+ runs-on : ubuntu-latest
47+
48+ environment :
49+ name : pypi
50+ url : https://pypi.org/p/django-datacite
51+
52+ permissions :
53+ id-token : write
54+
55+ steps :
56+ - name : Download the distribution packages 📥
57+ uses : actions/download-artifact@v6
58+ with :
59+ name : python-package-distributions
60+ path : dist/
61+
62+ - name : Publish to PyPI 🚀
63+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments