From b67ef3e3e26b83b52dfc26f94f559eac7b914336 Mon Sep 17 00:00:00 2001 From: AniruddhaKanhere <60444055+AniruddhaKanhere@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:30:37 -0700 Subject: [PATCH] Add artifact backup action --- .github/workflows/auto-release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 7f7ce1655..5e5fa8a0f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -13,6 +13,8 @@ on: jobs: auto-release: + permissions: + id-token: write name: Auto Release runs-on: ubuntu-20.04 steps: @@ -53,3 +55,11 @@ jobs: pip install -r ./tools/.github/scripts/release-requirements.txt ./tools/.github/scripts/release.py "$GITHUB_ORG" --core-repo-path=local_core --core-commit="$COMMIT_ID" --new-core-version="$VERSION_NUMBER" exit $? + + - name: Backup Release Asset + uses: FreeRTOS/CI-CD-Github-Actions/artifact-backup@main + with: + # This is dependent on the release script putting this zip file + # in this exact location. + artifact_path: ./tools/.github/scripts/FreeRTOSv${{ github.event.inputs.version_number }}.zip + release_tag: ${{ github.event.inputs.version_number }}