Skip to content

Commit de658d0

Browse files
committed
update ci
1 parent b1b98b1 commit de658d0

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@ name: ci
22
on:
33
push:
44
branches:
5+
- master
56
- main
67
permissions:
7-
contents: write
8+
contents: read
9+
pages: write
10+
id-token: write
811
jobs:
912
deploy:
13+
environment:
14+
name: github-pages
15+
url: ${{ steps.deployment.outputs.page_url }}
1016
runs-on: ubuntu-latest
1117
steps:
12-
- uses: actions/checkout@v4
13-
- name: Configure Git Credentials
14-
run: |
15-
git config user.name github-actions[bot]
16-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: actions/configure-pages@v5
19+
- uses: actions/checkout@v5
1720
- uses: actions/setup-python@v5
1821
with:
1922
python-version: 3.x
20-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21-
- uses: actions/cache@v4
23+
- run: pip install zensical
24+
- run: zensical build --clean
25+
- uses: actions/upload-pages-artifact@v4
2226
with:
23-
key: mkdocs-material-${{ env.cache_id }}
24-
path: .cache
25-
restore-keys: |
26-
mkdocs-material-
27-
- run: pip install -r requirements.txt
28-
- run: zensical build --clean
27+
path: site
28+
- uses: actions/deploy-pages@v4
29+
id: deployment

0 commit comments

Comments
 (0)