File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 8080 # Generate MD5 checksum
8181 - name : Generate MD5 checksum
8282 run : |
83- $md5 = (Get-FileHash -Path temp_dist/ rag.exe -Algorithm MD5).Hash
83+ $md5 = (Get-FileHash -Path src/python/ rag.py -Algorithm MD5).Hash
8484 echo $md5.ToLower() > temp_dist/md5.txt
8585 shell : pwsh
8686
@@ -102,7 +102,7 @@ jobs:
102102 prerelease : false
103103 env :
104104 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105-
105+
106106 # Clean up temporary directory
107107 - name : Clean up temporary directory
108108 if : always()
@@ -118,11 +118,14 @@ jobs:
118118 - name : Checkout code
119119 uses : actions/checkout@v4
120120
121- - name : Download EXE artifact
122- uses : actions/download-artifact@v4
123- with :
124- name : rag.exe
125- path : dist # 下载到 dist 目录
121+ - name : Generate MD5 for rag.py
122+ run : |
123+ mkdir -p dist
124+ sudo apt-get install dos2unix -y
125+ dos2unix src/python/rag.py
126+ md5sum src/python/rag.py | awk '{print $1}' > dist/md5.txt
127+ echo "Generated MD5: $(cat dist/md5.txt)"
128+ shell : bash
126129
127130 - name : Setup Node.js
128131 uses : actions/setup-node@v4
You can’t perform that action at this time.
0 commit comments