File tree Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments