Skip to content

Commit

Permalink
remove deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyuanxu-star committed Jul 8, 2024
1 parent 7075e63 commit 10a2b50
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,3 @@ jobs:
with:
outputFile: .github/result/check_result.json

deploy:
name: Deploy to logs
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
continue-on-error: true
with:
ref: 'gh-pages'
- name: Save Log File
run: |
mkdir autograding_logs
cd autograding_logs
if [ -f "../latest.json" ]; then
cp ../latest.json older.json
else
echo "{}" > older.json
fi
FILE_NAME=`date +%Y_%m_%d_%H_%M_%S`.txt
echo -ne "${{ needs.build.outputs.details }}\n" > $FILE_NAME
echo -ne "Points: ${{ needs.build.outputs.points }}" >> $FILE_NAME
cat older.json | jq ".default |= \"$FILE_NAME\"" > latest.json
rm older.json
echo -ne "# Got Points\n" > README.md
echo "![Points bar](../../blob/gh-pages/points-badge.svg)" >> README.md
- name: Make points svg
uses: markpatterson27/points-bar@v1
with:
points: '${{ needs.build.outputs.points }}'
path: 'autograding_logs/points-badge.svg'
type: 'badge'

0 comments on commit 10a2b50

Please sign in to comment.