diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e84281..f959d6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,6 +83,7 @@ jobs: publish-gitea: name: 📦 Sync Gitea Mirror needs: build-and-publish-github + if: ${{ always() }} runs-on: ubuntu-latest continue-on-error: true steps: @@ -91,11 +92,21 @@ jobs: with: fetch-depth: 0 - - name: Download binaries artifact - uses: actions/download-artifact@v4 - with: - name: release-binaries - path: dist/bin/ + # The GitHub artifact service can be unavailable or quota-limited even + # after the release upload succeeds. Download from the release itself so + # Gitea mirroring remains independent of ephemeral workflow artifacts. + - name: Download release assets from GitHub Release + env: + GH_TOKEN: ${{ github.token }} + run: | + TAG_NAME="${{ github.event.inputs.tag || github.ref_name }}" + mkdir -p dist/bin + gh release download "${TAG_NAME}" \ + --repo "${GITHUB_REPOSITORY}" \ + --pattern 'seal-use-*' \ + --pattern 'checksums.txt' \ + --dir dist/bin \ + --clobber - name: Sync to Gitea Release env: