Skip to content

Commit e81a856

Browse files
committed
Fuck with things more
1 parent ed8b4ca commit e81a856

1 file changed

Lines changed: 52 additions & 14 deletions

File tree

.github/workflows/release.yaml

Lines changed: 52 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
build-publish:
12+
build:
1313
name: Build Python Wheel
1414
runs-on: ubuntu-latest
1515

@@ -22,13 +22,13 @@ jobs:
2222

2323
strategy:
2424
matrix:
25-
container:
26-
- quay.io/pypa/musllinux_1_2_x86_64
27-
- quay.io/pypa/manylinux_2_28_x86_64
25+
platform:
26+
- musllinux_1_2_x86_64
27+
- manylinux_2_28_x86_64
2828
python: ["3.9", "3.10", "3.11", "3.12"]
2929

3030
container:
31-
image: ${{ matrix.container }}
31+
image: quay.io/pypa/${{ matrix.platform }}
3232

3333
steps:
3434
- name: Checkout code
@@ -47,16 +47,54 @@ jobs:
4747
- name: List built wheels
4848
run: ls -lh dist
4949

50-
51-
- name: Upload wheel to GitHub release
52-
uses: softprops/action-gh-release@v2
50+
- uses: actions/upload-artifact@v4
5351
with:
54-
files: dist/*.whl
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
name: ${{ matrix.python }}-${{ matrix.platform }}
53+
path: ./dist/*.whl
5754

5855

59-
- name: Publish package distributions to TestPyPI
60-
uses: pypa/gh-action-pypi-publish@release/v1
56+
deploy:
57+
needs: build
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Download All Artifacts
61+
uses: actions/download-artifact@v5
6162
with:
62-
repository-url: https://test.pypi.org/legacy/
63+
path: dist
64+
pattern: *
65+
merge-multiple: true
66+
- run: ls -R my-artifact
67+
68+
# deploy-gh:
69+
# needs: build
70+
# permissions:
71+
# contents: write
72+
# steps:
73+
# - name: Download All Artifacts
74+
# uses: actions/download-artifact@v5
75+
# with:
76+
# path: dist
77+
# pattern: *
78+
# merge-multiple: true
79+
# - name: Upload wheel to GitHub release
80+
# uses: softprops/action-gh-release@v2
81+
# with:
82+
# files: dist/*.whl
83+
# env:
84+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
86+
# deploy-pypi:
87+
# needs: build
88+
# permissions:
89+
# id-token: write
90+
# steps:
91+
# - name: Download All Artifacts
92+
# uses: actions/download-artifact@v5
93+
# with:
94+
# path: dist
95+
# pattern: *
96+
# merge-multiple: true
97+
# - name: Publish package distributions to TestPyPI
98+
# uses: pypa/gh-action-pypi-publish@release/v1
99+
# with:
100+
# repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)