Skip to content

Commit 7b80359

Browse files
committed
Fixing release CI strict (taken from safetensors).
1 parent a010f6b commit 7b80359

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.github/workflows/python-release.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,10 @@ jobs:
124124
- run: twine check --strict dist/*
125125
working-directory: ./bindings/python
126126

127-
- name: Upload wheels
128-
shell: bash
129-
run: |
130-
pip install awscli
131-
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$DIST_DIR"
132-
133-
# - uses: actions/upload-artifact@v3
134-
# working-directory: ./bindings/python/
135-
# with:
136-
# name: pypi_files
137-
# path: dist
127+
- uses: actions/upload-artifact@v4
128+
with:
129+
name: pypi_files-${{ matrix.os }}-${{ matrix.platform }}-${{ matrix.manylinux }}
130+
path: ./bindings/python/dist
138131
build-sdist:
139132
name: build sdist
140133
needs: [lock_exists]
@@ -147,11 +140,10 @@ jobs:
147140
command: sdist
148141
args: --out dist
149142
rust-toolchain: stable
150-
- name: Upload wheels
151-
shell: bash
152-
run: |
153-
pip install awscli
154-
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$DIST_DIR"
143+
- uses: actions/upload-artifact@v4
144+
with:
145+
name: pypi_files-srt
146+
path: ./bindings/python/dist
155147

156148

157149
upload_package:
@@ -168,12 +160,10 @@ jobs:
168160
python-version: "3.12"
169161
architecture: x64
170162

171-
- name: Retrieve all wheels
172-
shell: bash
173-
run: |
174-
pip install awscli
175-
aws s3 sync "s3://tokenizers-releases/python/$DIST_DIR" ./bindings/python/dist
176-
163+
- uses: actions/download-artifact@v4
164+
with:
165+
path: ./bindings/python/dist
166+
merge-multiple: true
177167
- name: Upload to PyPi
178168
working-directory: ./bindings/python
179169
run: |

0 commit comments

Comments
 (0)