Debian Codegraph @

.github/workflows/deploy_pages.yml

raw
1 name: Github Pages
2
3 on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8
9 permissions:
10 contents: read
11 pages: write
12 id-token: write
13
14 # Allow one concurrent deployment
15 concurrency:
16 group: "pages"
17 cancel-in-progress: true
18
19 jobs:
20 build-docs:
21 uses: ./.github/workflows/build_docs.yml
22 with:
23 tag: "stable"
24
25 run-coverage:
26 uses: ./.github/workflows/test_package.yml
27 with:
28 tag: "stable"
29
30 deploy:
31 needs: [run-coverage, build-docs]
32
33 environment:
34 name: github-pages
35 url: ${{ steps.deployment.outputs.page_url }}
36
37 if: github.event_name == 'push'
38 runs-on: ubuntu-latest
39 steps:
40 - name: Download docs artifact
41 # docs artifact is uploaded by build-docs job
42 uses: actions/download-artifact@v7
43 with:
44 name: docs
45 path: "./public"
46
47 - name: Download docs artifact
48 # docs artifact is uploaded by build-docs job
49 uses: actions/download-artifact@v7
50 with:
51 name: code-coverage-report
52 path: "./public/code-coverage-report"
53
54 - name: Upload artifact
55 uses: actions/upload-pages-artifact@v4
56 with:
57 path: "./public"
58
59 - name: Checkout
60 uses: actions/checkout@v6
61
62 - name: Setup Pages
63 uses: actions/configure-pages@v5
64
65 - name: Deploy to GitHub Pages
66 id: deployment
67 uses: actions/deploy-pages@v4