@@ -5,7 +5,7 @@ name: build
55env :
66 artifact_path : artifact_path
77 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8- Calendar_VERSION : v1.0.21
8+ Calendar_VERSION : v1.0.20
99
1010on :
1111 push :
3535 deploy :
3636 if : ${{ startsWith(github.ref, 'refs/tags/') }}
3737 runs-on : ubuntu-latest
38- needs : [ubuntu, msvc, macos, android]
38+ needs : [ubuntu, appimage, msvc, macos, android]
3939 steps :
4040 - name : Checkout Repository
4141 uses : actions/checkout@v3
4949 path : ${{ env.artifact_path }}
5050 merge-multiple : true
5151
52+ - name : Download appimage
53+ uses : actions/download-artifact@v4
54+ with :
55+ name : ${{ needs.appimage.outputs.name }}
56+ path : ${{ env.artifact_path }}
57+ merge-multiple : true
58+
5259 - name : Download msvc
5360 uses : actions/download-artifact@v4
5461 with :
@@ -73,33 +80,37 @@ jobs:
7380 - name : Process configure file
7481 run : |
7582 git clone https://github.com/KangLin/RabbitCommon.git
83+ ls
84+ echo "ls "${{ github.workspace }}"
85+ ls "${{ github.workspace }}
86+ echo "ls ${{ env.artifact_path }}"
87+ ls ${{ env.artifact_path }}
7688 ./RabbitCommon/Install/MergeJsonFile.sh \
7789 "${{ github.workspace }}/update.json" \
7890 "${{ env.artifact_path }}" "${{ env.artifact_path }}/version.json"
7991 rm ${{ env.artifact_path }}/*.json
8092
8193 - name : Make note file
8294 run : |
83- cd ${{ env.artifact_path }}
8495 echo "[:cn: 修改日志](https://github.com/KangLin/Calendar/blob/${{env.Calendar_VERSION}}/ChangeLog_zh_CN.md)" > ${{github.workspace}}/Note.md
8596 echo "[:us: Change log](https://github.com/KangLin/Calendar/blob/${{env.Calendar_VERSION}}/ChangeLog.md)" >> ${{github.workspace}}/Note.md
8697 echo "" >> ${{github.workspace}}/Note.md
87- echo "File signatures:" >> ${{github.workspace}}/Note.md
98+ echo "File checksum:" >> ${{github.workspace}}/Note.md
99+ echo "|File|Checksum(md5)|" >> ${{github.workspace}}/Note.md
100+ echo "| :- | :- |" >> ${{github.workspace}}/Note.md
101+ cd ${{ env.artifact_path }}
88102 for file in *
89103 do
90104 echo "$file"
91105 if [ -f $file ]; then
92106 if [ "${file##*.}" != "xml" ] && [ "${file##*.}" != "json" ]; then
93- md5sum $file > $file.md5sum
94- cat $ file.md5sum >> ${{github.workspace}}/Note.md
107+ md5sum $file > ${ file} .md5sum
108+ awk '{print "|", $2, "|", $1, "|"}' ${ file} .md5sum >> ${{github.workspace}}/Note.md
95109 fi
96110 else
97111 rm -fr $file
98112 fi
99113 done
100- echo "" >> ${{github.workspace}}/Note.md
101- # echo "得到文件签名(在 linux 中): md5sum file" >> ${{github.workspace}}/Note.md
102- # echo "Get file signatures in linux: md5sum file" >> ${{github.workspace}}/Note.md
103114
104115 - name : Upload To Github Release
105116 if : ${{ startsWith(github.ref, 'refs/tags/') }}
0 commit comments