Skip to content

Commit 2584eab

Browse files
committed
fix artifacts?
1 parent 7f76c6f commit 2584eab

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,25 @@ jobs:
1717
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
1818
- run: uv build
1919
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
20+
id: upload-artifact
2021
with:
21-
path: ./dist
22+
name: dist
23+
path: dist/
24+
if-no-files-found: error
2225
create-release:
2326
needs: [build]
2427
runs-on: ubuntu-latest
2528
permissions:
2629
contents: write
2730
steps:
2831
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
32+
with:
33+
artifact-ids: ${{ needs.build.outputs.artifact-id }}
34+
path: dist/
2935
- name: create release
3036
run: >
3137
gh release create --draft --repo ${{ github.repository }}
32-
${{ github.ref_name }} artifact/*
38+
${{ github.ref_name }} dist/*
3339
env:
3440
GH_TOKEN: ${{ github.token }}
3541
publish-pypi:
@@ -42,6 +48,9 @@ jobs:
4248
id-token: write
4349
steps:
4450
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
51+
with:
52+
artifact-ids: ${{ needs.build.outputs.artifact-id }}
53+
path: dist/
4554
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4655
with:
47-
packages-dir: artifact/
56+
packages-dir: dist/

0 commit comments

Comments
 (0)