Skip to content

Commit 254712b

Browse files
committed
Bump script
1 parent 50819c8 commit 254712b

File tree

1 file changed

+10
-27
lines changed

1 file changed

+10
-27
lines changed

.github/workflows/build-publish.yml

+10-27
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# - https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
55
#
66
# 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
88

99
on:
1010
push:
@@ -16,52 +16,35 @@ on:
1616

1717
jobs:
1818
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
3520

3621
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+
4225
- name: Install dependencies
4326
run: python -m pip install --upgrade pip setuptools build
27+
4428
- name: Build sdist and wheels
4529
run: python -m build
30+
4631
- name: Store wheels
47-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
4833
with:
4934
path: dist
5035

5136
publish:
5237
runs-on: ubuntu-latest
53-
environment:
54-
name: pypi
55-
url: https://pypi.org/p/momaland
5638
needs:
5739
- build-wheels
5840
if: github.event_name == 'release' && github.event.action == 'published'
5941
steps:
6042
- name: Download dists
61-
uses: actions/download-artifact@v2
43+
uses: actions/download-artifact@v4
6244
with:
6345
name: artifact
6446
path: dist
47+
6548
- name: Publish
6649
uses: pypa/gh-action-pypi-publish@release/v1
6750
with:

0 commit comments

Comments
 (0)