diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5568e64d..7f5a496d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -68,16 +68,16 @@ jobs: sha256sum * | tee SHA256SUMS - name: Upload Python artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: dist + name: dist-${{ github.run_attempt }} path: dist if-no-files-found: error - name: Upload Javascript artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: jsdist + name: jsdist-${{ github.run_attempt }} path: jsdist if-no-files-found: error @@ -93,9 +93,9 @@ jobs: python-version: "3.11" - name: Download artifacts from build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: dist + name: dist-${{ github.run_attempt }} path: dist # The PyPI publishing action will try to publish this checksum file as if @@ -125,9 +125,9 @@ jobs: registry-url: https://registry.npmjs.org - name: Download artifacts from build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: jsdist + name: jsdist-${{ github.run_attempt }} path: jsdist - run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 74195ca5..ea7cde35 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -53,9 +53,9 @@ jobs: run: pyproject-build - name: Upload built artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: dist-${{ github.run_number }} + name: dist-${{ github.run_attempt }} path: ./dist test: @@ -94,9 +94,9 @@ jobs: run: pip install --upgrade pip - name: Download built artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: dist-${{ github.run_number }} + name: dist-${{ github.run_attempt }} path: ./dist - name: Install Python package @@ -152,10 +152,10 @@ jobs: - name: Upload test reports if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: |- - tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_number }} + tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_attempt }} path: | ./build/pytest ./build/coverage