Skip to content

Commit bbbfa63

Browse files
committed
Dev : Doc Runner
1 parent afcc187 commit bbbfa63

File tree

1 file changed

+42
-10
lines changed

1 file changed

+42
-10
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,51 @@
1-
name: ci
1+
name: Publish Docs
22
on:
33
push:
44
branches:
55
- main
6+
7+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
619
jobs:
7-
deploy:
20+
build:
821
runs-on: ubuntu-latest
922
steps:
10-
- uses: actions/checkout@v3
11-
with:
12-
token: ${{ secrets.GH_TOKEN }}
13-
- uses: actions/setup-python@v4
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
26+
- name: Setup Python
27+
uses: actions/setup-python@v4
1428
with:
1529
python-version: 3.x
16-
- run: pip install mkdocs-material
17-
- run: git config --global user.name "GitHub Actions"
18-
- run: git config --global user.email "[email protected]"
19-
- run: mkdocs gh-deploy --force
30+
31+
- name: Install Dependencies
32+
run: pip install mkdocs-material
33+
34+
- name: Build Site
35+
run: mkdocs build
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v2
39+
with:
40+
path: 'site'
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)