aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docs.yaml
blob: 35aa30404fdcd25eb4b94456e7fee7e0563571d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: docs
on:
    push:
        branches:
            - master
jobs:
    docs:
        runs-on: ubuntu-latest
        steps:
          - name: checkout repository
            uses: actions/checkout@v2
          - name: install python
            uses: actions/setup-python@v1
            with:
                python-version: "3.10"
          - name: install requirements.pip.dev.txt
            run: |
                python -m pip install --upgrade pip
                pip install sphinx furo
          - name: build docs
            run: ./build-docs.sh
          - name: create CNAME
            if: github.repository == 'bozokopic/lisp16'
            run: |
                 echo "lisp16.kopic.xyz" > build/docs/CNAME
          - name: deploy
            uses: peaceiris/actions-gh-pages@v3
            with:
                github_token: ${{ secrets.GITHUB_TOKEN }}
                publish_dir: ./build/docs
                publish_branch: gh-pages
                force_orphan: true