Skip to content

Commit fe85dfe

Browse files
committed
Update .github/workflows/deploy-pages.yml: Apply mkdocs-page-publisher
1 parent c587197 commit fe85dfe

File tree

1 file changed

+6
-46
lines changed

1 file changed

+6
-46
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,10 @@ on:
66

77
workflow_dispatch:
88

9-
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
concurrency:
15-
group: "pages"
16-
cancel-in-progress: false
17-
189
jobs:
19-
build:
20-
runs-on: ubuntu-latest
21-
container: kjuly/mkdocs-material:latest
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
- name: Build static pages
26-
run: ./build_to_deploy.sh
27-
- name: Upload artifact
28-
uses: actions/upload-artifact@v4
29-
with:
30-
name: pages
31-
path: build
32-
if-no-files-found: error
33-
34-
deploy:
35-
runs-on: ubuntu-latest
36-
needs: build
37-
environment:
38-
name: github-pages
39-
url: ${{steps.deployment.outputs.page_url}}
40-
steps:
41-
- name: Upload artifact
42-
uses: actions/download-artifact@v4
43-
with:
44-
name: pages
45-
path: .
46-
- name: Setup Pages
47-
uses: actions/configure-pages@v5
48-
- name: Upload pages artifact
49-
uses: actions/upload-pages-artifact@v3
50-
with:
51-
path: .
52-
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v4
55-
10+
build-n-deploy:
11+
uses: Kjuly/mkdocs-page-publisher@main
12+
with:
13+
config-files: |-
14+
config/en/mkdocs.yml
15+
config/zh-Hans/mkdocs.yml

0 commit comments

Comments
 (0)