Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/_publish-dar-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading