mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 07:39:59 +00:00
Compare commits
1 Commits
1d967aa8a4
...
071fdb296b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
071fdb296b |
28
.github/workflows/docs-and-testcov.yml
vendored
28
.github/workflows/docs-and-testcov.yml
vendored
@ -115,23 +115,19 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \
|
||||
"$artifact_url" -o benchmark-report.zip
|
||||
|
||||
|
||||
|
||||
# Print all files in the current directory
|
||||
echo "Files in the current directory:"
|
||||
ls -al
|
||||
|
||||
# check if the zip file is valid
|
||||
if ! unzip -tq benchmark-report.zip; then
|
||||
echo "benchmark-report.zip is invalid or corrupted!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unzip -q benchmark-report.zip -d benchmark-report
|
||||
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-o benchmark-report.zip "$artifact_url"
|
||||
|
||||
mkdir -p benchmark-report
|
||||
# print ls -a
|
||||
echo "$( ls -a benchmark-report )"
|
||||
unzip benchmark-report.zip -d benchmark-report
|
||||
# there will be a tar file in the benchmark-report directory
|
||||
# called artifact.tar. unzip it into the benchmark-report
|
||||
tar -xvf benchmark-report/artifact.tar -C benchmark-report
|
||||
# remove the artifact.tar file
|
||||
rm benchmark-report/artifact.tar
|
||||
# add an index.html that points to benchmark-report/report/index.html
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=report/index.html\">" > benchmark-report/index.html
|
||||
|
||||
- name: Copy files to output directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user