File tree 1 file changed +27
-13
lines changed
1 file changed +27
-13
lines changed Original file line number Diff line number Diff line change 13
13
permissions : {}
14
14
15
15
jobs :
16
-
17
- deploy :
18
- if : github.repository == 'pytest-dev/pytest'
19
-
16
+ build :
20
17
runs-on : ubuntu-latest
21
- timeout-minutes : 30
22
- permissions :
23
- contents : write
24
-
18
+ timeout-minutes : 10
25
19
steps :
26
20
- uses : actions/checkout@v3
27
21
with :
28
22
fetch-depth : 0
29
23
persist-credentials : false
30
-
31
24
- name : Build and Check Package
32
25
uses : hynek/build-and-inspect-python-package@v1.5
33
26
27
+ deploy :
28
+ if : github.repository == 'pytest-dev/pytest'
29
+ needs : [build]
30
+ runs-on : ubuntu-latest
31
+ timeout-minutes : 30
32
+ permissions :
33
+ id-token : write
34
+ steps :
34
35
- name : Download Package
35
36
uses : actions/download-artifact@v3
36
37
with :
37
38
name : Packages
38
39
path : dist
39
-
40
40
- name : Publish package to PyPI
41
- uses : pypa/gh-action-pypi-publish@release/v1
42
- with :
43
- password : ${{ secrets.pypi_token }}
41
+ uses : pypa/gh-action-pypi-publish@v1.8.5
42
+
43
+ release-notes :
44
44
45
+ # todo: generate the content in the build job
46
+ # the goal being of using a github action script to push the release data
47
+ # after success instead of creating a complete python/tox env
48
+ needs : [deploy]
49
+ runs-on : ubuntu-latest
50
+ timeout-minutes : 30
51
+ permissions :
52
+ contents : write
53
+ steps :
54
+ - uses : actions/checkout@v3
55
+ with :
56
+ fetch-depth : 0
57
+ persist-credentials : false
45
58
- name : Set up Python
46
59
uses : actions/setup-python@v4
47
60
with :
48
61
python-version : " 3.7"
49
62
63
+
50
64
- name : Install tox
51
65
run : |
52
66
python -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments