diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ac25556..f886794 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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'