Skip to content

Commit f992e92

Browse files
Add artifact backup action
1 parent 7225fbc commit f992e92

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/auto-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ on:
1818

1919
jobs:
2020
release-packager:
21+
permissions:
22+
id-token: write
2123
name: Release Packager
2224
runs-on: ubuntu-latest
2325
steps:
@@ -117,6 +119,14 @@ jobs:
117119
./tools/.github/scripts/release.py "$REPO_OWNER" --kernel-repo-path=local_kernel --kernel-commit="$COMMIT_SHA_2" --new-kernel-version="$VERSION_NUMBER" --new-kernel-main-br-version="$MAIN_BR_VERSION_NUMBER"
118120
exit $?
119121
122+
- name: Backup Release Asset
123+
uses: FreeRTOS/CI-CD-Github-Actions/artifact-backup@main
124+
with:
125+
# This is dependent on the release script putting this zip file
126+
# in this exact location.
127+
artifact_path: ./tools/.github/scripts/FreeRTOS-KernelV${{ github.event.inputs.version_number }}.zip
128+
release_tag: ${{ github.event.inputs.version_number }}
129+
120130
- name: Cleanup
121131
env:
122132
VERSION_NUMBER: ${{ github.event.inputs.version_number }}

0 commit comments

Comments
 (0)