From ed4682ae69818f95413b30e8c2d7337a3be7b91a Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Tue, 3 Sep 2024 15:05:08 +0200 Subject: [PATCH] Deploy via pages --- .github/workflows/codechecker.yaml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codechecker.yaml b/.github/workflows/codechecker.yaml index 5ad213dc..c7cc463d 100644 --- a/.github/workflows/codechecker.yaml +++ b/.github/workflows/codechecker.yaml @@ -33,8 +33,31 @@ jobs: with: logfile: ${{ github.workspace }}/build/compile_commands.json + - name: Archive + shell: sh + run: | + tar --directory ${{ steps.codechecker.outputs.result-html-dir }} \ + cvf "$RUNNER_TEMP/artifact.tar" + # Upload the results to the CI. - - uses: actions/upload-artifact@v2 + - uses: actions/upload-pages-artifact@v4 with: name: "CodeChecker Bug Reports" - path: ${{ steps.codechecker.outputs.result-html-dir }} + path: ${{ runner.temp }}/artifact.tar + if-no-files-fount: error + + deploy: + needs: check + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + run: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4