Skip to content

Commit 7efc026

Browse files
author
Jocelyn Lussier
committed
update github actions
1 parent c857e93 commit 7efc026

2 files changed

Lines changed: 55 additions & 26 deletions

File tree

.github/workflows/deploy-bak.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/deploy.yml

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
1-
name: Deploy Zensical to GitHub Pages
2-
1+
name: Documentation
32
on:
43
push:
54
branches:
5+
- master
66
- main
7-
workflow_dispatch:
8-
97
permissions:
10-
contents: write
11-
8+
contents: read
9+
pages: write
10+
id-token: write
1211
jobs:
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

0 commit comments

Comments
 (0)