Skip to content

Commit 15e03b5

Browse files
committed
CI update
1 parent b679d2b commit 15e03b5

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/release-candidate.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: 'Release Version Number (Eg, v1.0.0-rc1)'
1111
required: true
1212

13+
# Workflow permissions block
14+
permissions:
15+
contents: write # This grants write access to repository content, including pushing commits/tags and creating releases.
16+
1317
jobs:
1418
tag-commit:
1519
name: Tag commit
@@ -32,4 +36,4 @@ jobs:
3236
git tag -d ${{ github.event.inputs.version_number }}
3337
git remote update
3438
git checkout tags/${{ github.event.inputs.version_number }}
35-
git diff ${{ github.event.inputs.commit_id }} tags/${{ github.event.inputs.version_number }}
39+
git diff ${{ github.event.inputs.commit_id }} tags/${{ github.event.inputs.version_number }}

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: 'Release Version Number (Eg, v1.0.0)'
1111
required: true
1212

13+
# Workflow permissions block
14+
permissions:
15+
contents: write # This grants write access to repository content, including pushing commits/tags and creating releases.
16+
1317
jobs:
1418
tag-commit:
1519
name: Tag commit
@@ -140,6 +144,8 @@ jobs:
140144
ref: ${{ github.event.inputs.version_number }}
141145
add_release: "true"
142146
create-release:
147+
permissions:
148+
id-token: write
143149
needs:
144150
- create-zip
145151
- deploy-doxygen
@@ -171,6 +177,11 @@ jobs:
171177
asset_path: ./FreeRTOS-Plus-TCP-${{ github.event.inputs.version_number }}.zip
172178
asset_name: FreeRTOS-Plus-TCP-${{ github.event.inputs.version_number }}.zip
173179
asset_content_type: application/zip
180+
- name: Backup Release Asset
181+
uses: FreeRTOS/CI-CD-Github-Actions/artifact-backup@main
182+
with:
183+
artifact_path: ./FreeRTOS-Plus-TCP-${{ github.event.inputs.version_number }}.zip
184+
release_tag: ${{ github.event.inputs.version_number }}
174185
cleanup:
175186
needs:
176187
- create-release

0 commit comments

Comments
 (0)