Skip to content

Commit 57f4dca

Browse files
committed
add sha256sum for release files
1 parent 974a0e5 commit 57f4dca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release_maixcam.yml

+14
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,15 @@ jobs:
9090
./gen_os.sh $base_os_path $release_path $builtin_files_dir $os_version_name
9191
os_filename=${os_version_name}.img.xz
9292
os_filepath=`pwd`/tmp/$os_filename
93+
sha256sum $os_file_path > ${maixpy_path}/files_sha256sum.txt
94+
sha256sum $release_path >> ${maixpy_path}/files_sha256sum.txt
9395
echo "os_path=$os_filepath" >> $GITHUB_OUTPUT
9496
echo "os_name=$os_filename" >> $GITHUB_OUTPUT
9597
9698
- name: Build doc
9799
id: build_doc
98100
run: |
101+
maixpy_path=$(pwd)
99102
pip3 install teedoc
100103
cd docs
101104
echo "== install plugins =="
@@ -120,8 +123,11 @@ jobs:
120123
cd ..
121124
release_name=${doc_dir}.zip
122125
release_path=docs/$release_name
126+
sha256sum $release_path >> ${maixpy_path}/files_sha256sum.txt
123127
echo "release_doc_path=$release_path" >> $GITHUB_OUTPUT
124128
echo "release_doc_name=$release_name" >> $GITHUB_OUTPUT
129+
echo "sha256sum_path=${maixpy_path}/files_sha256sum.txt" >> $GITHUB_OUTPUT
130+
echo "sha256sum_name=files_sha256sum.txt" >> $GITHUB_OUTPUT
125131
126132
- name: Upload MaixPy Doc to release assets
127133
uses: svenstaro/upload-release-action@v2
@@ -131,6 +137,14 @@ jobs:
131137
tag: ${{ github.ref }}
132138
repo_token: ${{ secrets.GITHUB_TOKEN }}
133139

140+
- name: Upload sha256sum file to release assets
141+
uses: svenstaro/upload-release-action@v2
142+
with:
143+
file: ${{ steps.build_doc.outputs.sha256sum_path }}
144+
asset_name: ${{ steps.build_doc.outputs.sha256sum_name }}
145+
tag: ${{ github.ref }}
146+
repo_token: ${{ secrets.GITHUB_TOKEN }}
147+
134148
- name: Upload MaixCDK version txt to release assets
135149
uses: svenstaro/upload-release-action@v2
136150
with:

0 commit comments

Comments
 (0)