更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Failing after 47s Details
自动流水线示例 / deploy (push) Has been skipped Details
自动流水线示例 / 检查 (push) Has been skipped Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 15s Details
自动流水线示例 / download (push) Successful in 14s Details

生成sha256
This commit is contained in:
xiehaijun 2025-07-27 12:32:13 +00:00
parent 884296bd27
commit 6e25bc1c98
1 changed files with 14 additions and 1 deletions

View File

@ -203,7 +203,7 @@ jobs:
with: with:
path: my-artifact path: my-artifact
pattern: my-artifact-* pattern: my-artifact-*
merge-multiple: true # merge-multiple: true # 合并多个文件,会生成一个新的file-xxxx文件
# 下载其他仓库的制品 # 下载其他仓库的制品
# github-token: ${{ secrets.GH_PAT }} # github-token: ${{ secrets.GH_PAT }}
# repository: actions/toolkit # repository: actions/toolkit
@ -215,3 +215,16 @@ jobs:
# find all-artifacts -type f -exec cp {} release/ \; # find all-artifacts -type f -exec cp {} release/ \;
find . -type f -exec cp {} release/ \; find . -type f -exec cp {} release/ \;
ls -lah ./release ls -lah ./release
- name: Generate SHA-256
run: |
cd release
for f in *; do
if [[ "$RUNNER_OS" == "Windows" ]]; then
certutil -hashfile "$f" SHA256 > "$f.sha256"
sed -i 's/\r//' "$f.sha256"
else
shasum -a 256 "$f" > "$f.sha256"
fi
done
cd ..
ls -alh ./release/