File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # name: Deploy Zensical to GitHub Pages
2+
3+ # on:
4+ # push:
5+ # branches:
6+ # - main
7+ # workflow_dispatch:
8+
9+ # permissions:
10+ # contents: write
11+
12+ # jobs:
13+ # deploy:
14+ # runs-on: ubuntu-latest
15+ # steps:
16+ # - uses: actions/checkout@v4
17+
18+ # - name: Configure Git Credentials
19+ # run: |
20+ # git config user.name github-actions[bot]
21+ # git config user.email 41898282+github-actions[bot]@users.noreply.github.com
22+
23+ # - uses: actions/setup-python@v5
24+ # with:
25+ # python-version: 3.x
26+
27+ # - name: Install Zensical
28+ # run: |
29+ # pip install -r requirements.txt
30+
31+ # - name: Build with Zensical
32+ # run: zensical build
33+
34+ # - name: Deploy to GitHub Pages
35+ # uses: peaceiris/actions-gh-pages@v3
36+ # with:
37+ # github_token: ${{ secrets.GITHUB_TOKEN }}
38+ # publish_dir: ./site
Original file line number Diff line number Diff line change 1- name : Deploy Zensical to GitHub Pages
2-
1+ name : Documentation
32on :
43 push :
54 branches :
5+ - master
66 - main
7- workflow_dispatch :
8-
97permissions :
10- contents : write
11-
8+ contents : read
9+ pages : write
10+ id-token : write
1211jobs :
1312 deploy :
13+ environment :
14+ name : github-pages
15+ url : ${{ steps.deployment.outputs.page_url }}
1416 runs-on : ubuntu-latest
1517 steps :
16- - uses : actions/checkout@v4
17-
18- - name : Configure Git Credentials
19- run : |
20- git config user.name github-actions[bot]
21- git config user.email 41898282+github-actions[bot]@users.noreply.github.com
22-
23- - uses : actions/setup-python@v5
18+ - uses : actions/configure-pages@v6
19+ - uses : actions/checkout@v7
20+ - uses : actions/setup-python@v6
2421 with :
2522 python-version : 3.x
26-
27- - name : Install Zensical
28- run : |
29- pip install -r requirements.txt
30-
31- - name : Build with Zensical
32- run : zensical build
33-
34- - name : Deploy to GitHub Pages
35- uses : peaceiris/actions-gh-pages@v3
23+ - run : pip install zensical
24+ - run : zensical build --clean
25+ - uses : actions/upload-pages-artifact@v5
3626 with :
37- github_token : ${{ secrets.GITHUB_TOKEN }}
38- publish_dir : ./site
27+ path : site
28+ - uses : actions/deploy-pages@v5
29+ id : deployment
You can’t perform that action at this time.
0 commit comments