Skip to content

Commit e3e41ed

Browse files
committed
Fix up download steps and propagate to deploy
1 parent 1b3ed21 commit e3e41ed

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

.github/workflows/deploy.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,23 @@ jobs:
2424
# this permission is mandatory for trusted publishing with PyPI
2525
id-token: write
2626
steps:
27-
# TODO: figure out how to download from release step
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
2831
- name: Download artifacts
32+
env:
33+
GH_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
2934
run: |
30-
gh release download --pattern "*.whl"
31-
gh release download --pattern "*.tar.gz"
32-
- name: Move artifacts into dist
33-
run: |
34-
# TODO
35-
gh release download --pattern "*.whl"
36-
gh release download --pattern "*.tar.gz"
35+
gh release download --pattern "*.whl" --dir dist
36+
gh release download --pattern "*.tar.gz" --dir dist
37+
# Check what we have
38+
tree
39+
tree dist
40+
- name: Setup uv
41+
id: setup-uv
42+
uses: astral-sh/setup-uv@v4
43+
with:
44+
version: "0.8.8"
3745
- name: Publish to PyPI
38-
run: |
39-
# uv publish
40-
# # Just in case, undo the changes to `pyproject.toml`
41-
# git restore --staged . && git restore .
46+
run: uv publish

.github/workflows/download-playground.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ jobs:
3131
env:
3232
GH_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
3333
run: |
34-
# gh release download --pattern "*.whl"
35-
gh release download --pattern "*.tar.gz"
36-
- name: Move artifacts into dist
37-
run: |
38-
ls
34+
gh release download --pattern "*.whl" --dir dist
35+
gh release download --pattern "*.tar.gz" --dir dist
36+
# Check what we have
3937
tree
40-
# TODO
41-
#
42-
ls dist
38+
tree dist
4339
# - name: Publish to PyPI
4440
# run: |
4541
# # uv publish
46-
# # # Just in case, undo the changes to `pyproject.toml`
47-
# # git restore --staged . && git restore .

0 commit comments

Comments
 (0)