From 1b87a1be56f9f9f95e3414030b2bfc74182ad3c2 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Fri, 16 Aug 2024 14:33:45 +0200 Subject: [PATCH] fix deploy path --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 906bbcb..a19c80a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: hynek/build-and-inspect-python-package@v2 + id: build_dist - name: determine tag run: echo "tag=${GITHUB_REF/refs\/tags\/v/}" >> "$GITHUB_ENV" - name: Create Release @@ -30,10 +31,10 @@ jobs: draft: false prerelease: ${{ contains(env.tag, 'rc') || contains(env.tag, 'a') || contains(env.tag, 'b') }} target_commitish: ${{ github.sha }} - files: | - dist/* + files: ${{ steps.build_dist.outputs.dist }} - name: Publish PyPI Package if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TWINE_API_KEY }} + packages-dir: ${{ steps.build_dist.outputs.dist }}