Debian Codegraph @

.github/workflows/page.yml

raw symbols SCIP
1
2 name: GitHub Pages
3
4 on:
5 push:
6 pull_request:
7
8 permissions:
9 contents: read
10 pages: write
11 id-token: write
12
13 jobs:
14 build:
15 runs-on: ubuntu-24.04
16 steps:
17 - uses: actions/checkout@v4
18 with:
19 submodules: false
20 fetch-depth: 0
21
22 - name: Setup Pages
23 id: pages
24 uses: actions/configure-pages@v5
25 - name: Install asciidoctor
26 run: sudo apt install -y asciidoctor
27
28 - name: Build
29 run: |
30 asciidoctor -a env-web -a doctype=article -a stylesheet=../assets/next.css -b html man/picom.1.adoc -D _site
31 asciidoctor -a doctype=article -a stylesheet=../assets/next.css -b html man/picom-inspect.1.adoc -D _site
32 asciidoctor -a doctype=article -a stylesheet=../assets/next.css -b html man/picom-trans.1.adoc -D _site
33 cp -r assets _site/
34 cp _site/picom.1.html _site/index.html
35 - name: Copy .well-known
36 run: cp -r .well-known _site
37
38 - name: Upload
39 uses: actions/upload-pages-artifact@v3
40
41 deploy:
42 concurrency:
43 group: "pages"
44 cancel-in-progress: true
45 if: github.ref == 'refs/heads/next'
46 environment:
47 name: github-pages
48 url: ${{ steps.deployment.outputs.page_url }}
49 runs-on: ubuntu-latest
50 needs: build
51 steps:
52 - name: Deploy to GitHub Pages
53 id: deployment
54 uses: actions/deploy-pages@v4
55