Skip to content

Commit a07c8c7

Browse files
authored
Add deploy doxygen release flow. (#115)
* Add deploy doxygen release flow. * Update SBOM release flow.
1 parent 59c7871 commit a07c8c7

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
tag-commit:
15-
name: Tag commit
15+
name: Generate SBOM and tag commit
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
@@ -21,7 +21,20 @@ jobs:
2121
ref: ${{ github.event.inputs.commit_id }}
2222
- name: Configure git identity
2323
run: |
24-
git config --global user.name "Release Workflow"
24+
git config --global user.name ${{ github.actor }}
25+
git config --global user.email ${{ github.actor }}@users.noreply.github.com
26+
- name: create a new branch that references commit id
27+
run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }}
28+
- name: Generate SBOM
29+
uses: FreeRTOS/CI-CD-Github-Actions/sbom-generator@main
30+
with:
31+
repo_path: ./
32+
source_path: ./source
33+
- name: commit SBOM file
34+
run: |
35+
git add .
36+
git commit -m 'Update SBOM'
37+
git push -u origin ${{ github.event.inputs.version_number }}
2538
- name: Tag Commit and Push to remote
2639
run: |
2740
git tag ${{ github.event.inputs.version_number }} -a -m "FreeRTOS-Cellular-Interface Library ${{ github.event.inputs.version_number }}"
@@ -82,8 +95,20 @@ jobs:
8295
with:
8396
name: FreeRTOS-Cellular-Interface-${{ github.event.inputs.version_number }}.zip
8497
path: zip-check/FreeRTOS-Cellular-Interface-${{ github.event.inputs.version_number }}.zip
98+
deploy-doxygen:
99+
needs: tag-commit
100+
name: Deploy doxygen documentation
101+
runs-on: ubuntu-latest
102+
steps:
103+
- name: Doxygen generation
104+
uses: FreeRTOS/CI-CD-Github-Actions/doxygen-generation@main
105+
with:
106+
ref: ${{ github.event.inputs.version_number }}
107+
add_release: "true"
85108
create-release:
86-
needs: create-zip
109+
needs:
110+
- create-zip
111+
- deploy-doxygen
87112
name: Create Release and Upload Release Asset
88113
runs-on: ubuntu-latest
89114
steps:

0 commit comments

Comments
 (0)