File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : pytest
22
3- on : [' push']
3+ on : push
44
55jobs :
66 pytest :
@@ -24,11 +24,12 @@ jobs:
2424 --health-retries 5
2525
2626 steps :
27- - name : Checkout repo
28- uses : actions/checkout@v3
27+ - uses : actions/checkout@v6
28+ with :
29+ persist-credentials : false
2930
3031 - name : Set up Python ${{ matrix.python-version }}
31- uses : actions/setup-python@v4
32+ uses : actions/setup-python@v6
3233 with :
3334 python-version : ${{ matrix.python-version }}
3435
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ name : Build distribution 📦
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v6
12+ with :
13+ persist-credentials : false
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v6
17+ with :
18+ python-version : " 3.x"
19+
20+ - name : Install build
21+ run : python3 -m pip install build --user
22+
23+ - name : Build a binary wheel and a source tarball
24+ run : python3 -m build
25+
26+ - name : Store the distribution packages
27+ uses : actions/upload-artifact@v5
28+ with :
29+ name : python-package-distributions
30+ path : dist/
31+
32+ publish :
33+ name : Publish Python 🐍 distribution 📦 to PyPI
34+ if : startsWith(github.ref, 'refs/tags/')
35+
36+ needs :
37+ - build
38+
39+ runs-on : ubuntu-latest
40+ environment :
41+ name : pypi
42+ url : https://pypi.org/p/django-datacite
43+
44+ permissions :
45+ id-token : write
46+
47+ steps :
48+ - name : Download all the dists
49+ uses : actions/download-artifact@v6
50+ with :
51+ name : python-package-distributions
52+ path : dist/
53+
54+ - name : Publish distribution 📦 to PyPI
55+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments