diff --git a/.github/workflows/_publish-dar-packages.yaml b/.github/workflows/_publish-dar-packages.yaml index 1e0e5d7..02ebc24 100644 --- a/.github/workflows/_publish-dar-packages.yaml +++ b/.github/workflows/_publish-dar-packages.yaml @@ -151,6 +151,22 @@ jobs: GH_TOKEN: ${{ secrets.COUNTERS_TOKEN }} run: .github/scripts/fetch-counters.sh + - name: Seed the local feed with this release's core packages + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_TAG_INPUT: ${{ inputs.release_tag }} + run: | + set -euo pipefail + FEED="$RUNNER_TEMP/local-feed" + TAG="${RELEASE_TAG_INPUT:-v${CODEGEN_CS_VERSION}}" + mkdir -p "$FEED" + if gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --pattern '*.nupkg' --dir "$FEED" --clobber; then + echo "Seeded the local feed from $TAG:" + ls -1 "$FEED" + else + echo "::warning::could not seed the local feed from $TAG; restores fall back to nuget.org, which does not serve a just-pushed version until it finishes indexing" + fi + - name: Generate, build, pack (multi-pass) via dpm codegen-cs env: DOTNET_NOLOGO: 1