From d84d7f30bdc14cb1a839df6718f84af10889491d Mon Sep 17 00:00:00 2001 From: Sam Vente Date: Fri, 27 Sep 2024 11:12:17 +0200 Subject: [PATCH] use different download action for release --- .github/workflows/finish-release.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/finish-release.yml b/.github/workflows/finish-release.yml index e5a7b29d5..6c599fb95 100644 --- a/.github/workflows/finish-release.yml +++ b/.github/workflows/finish-release.yml @@ -60,11 +60,16 @@ jobs: runs-on: ubuntu-latest # if: github.event.pull_request.merged == true steps: - - uses: actions/download-artifact@v4 + - id: download-artifact + uses: dawidd6/action-download-artifact@v6 with: + github_token: ${{secrets.GITHUB_TOKEN}} + workflow: create-release-artifacts.yml + workflow_conclusion: success name: pypi-release-artifacts path: dist - run-id: ${{ inputs.run_id }} + check_artifacts: true + if_no_artifact_found: fail - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@v1.9.0 with: @@ -76,11 +81,16 @@ jobs: runs-on: ubuntu-latest # if: github.event.pull_request.merged == true steps: - - uses: actions/download-artifact@v4 + - id: download-artifact + uses: dawidd6/action-download-artifact@v6 with: - name: docs-release-artifacts - path: docs/_build - run-id: ${{ inputs.run_id }} + github_token: ${{secrets.GITHUB_TOKEN}} + workflow: create-release-artifacts.yml + workflow_conclusion: success + name: docs-release-artifacts + path: docs/_build + check_artifacts: true + if_no_artifact_found: fail - name: Upload to GitHub Pages uses: peaceiris/actions-gh-pages@v4.0.0 with: