File tree 1 file changed +10
-27
lines changed
1 file changed +10
-27
lines changed Original file line number Diff line number Diff line change 4
4
# - https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
5
5
#
6
6
# derived from https://github.com/Farama-Foundation/PettingZoo/blob/e230f4d80a5df3baf9bd905149f6d4e8ce22be31/.github/workflows/build-publish.yml
7
- name : build-publish
7
+ name : Build artifact for PyPI
8
8
9
9
on :
10
10
push :
16
16
17
17
jobs :
18
18
build-wheels :
19
- runs-on : ${{ matrix.os }}
20
- strategy :
21
- matrix :
22
- include :
23
- - os : ubuntu-latest
24
- python : 38
25
- platform : manylinux_x86_64
26
- - os : ubuntu-latest
27
- python : 39
28
- platform : manylinux_x86_64
29
- - os : ubuntu-latest
30
- python : 310
31
- platform : manylinux_x86_64
32
- - os : ubuntu-latest
33
- python : 311
34
- platform : manylinux_x86_64
19
+ runs-on : ubuntu-latest
35
20
36
21
steps :
37
- - uses : actions/checkout@v3
38
- - name : Set up Python
39
- uses : actions/setup-python@v4
40
- with :
41
- python-version : ' 3.x'
22
+ - uses : actions/checkout@v4
23
+ - uses : actions/setup-python@v5
24
+
42
25
- name : Install dependencies
43
26
run : python -m pip install --upgrade pip setuptools build
27
+
44
28
- name : Build sdist and wheels
45
29
run : python -m build
30
+
46
31
- name : Store wheels
47
- uses : actions/upload-artifact@v3
32
+ uses : actions/upload-artifact@v4
48
33
with :
49
34
path : dist
50
35
51
36
publish :
52
37
runs-on : ubuntu-latest
53
- environment :
54
- name : pypi
55
- url : https://pypi.org/p/momaland
56
38
needs :
57
39
- build-wheels
58
40
if : github.event_name == 'release' && github.event.action == 'published'
59
41
steps :
60
42
- name : Download dists
61
- uses : actions/download-artifact@v2
43
+ uses : actions/download-artifact@v4
62
44
with :
63
45
name : artifact
64
46
path : dist
47
+
65
48
- name : Publish
66
49
uses : pypa/gh-action-pypi-publish@release/v1
67
50
with :
You can’t perform that action at this time.
0 commit comments