Skip to content

Commit

Permalink
Deploy via pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tobhe committed Sep 3, 2024
1 parent 044b797 commit ed4682a
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/codechecker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ed4682a

Please sign in to comment.