Skip to content

Commit 0dea4a1

Browse files
Create gh-pages.yml
1 parent 6fbf206 commit 0dea4a1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy docs to GitHub pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["master"]
7+
8+
# Sets permissions write in gh
9+
permissions:
10+
contents: write
11+
12+
# Allow one concurrent deployment
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Configure Git Credentials
23+
run: |
24+
git config user.name mkdocs-gh-deploy[bot]
25+
git config user.email mkdocs-gh-deploy@developerinsider.co
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.x
29+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
30+
- uses: actions/cache@v4
31+
with:
32+
key: mkdocs-material-${{ env.cache_id }}
33+
path: .cache
34+
restore-keys: |
35+
mkdocs-material-
36+
- run: pip install mkdocs-material
37+
- run: pip install mkdocs-awesome-pages-plugin
38+
- run: pip install mkdocs-git-revision-date-localized-plugin
39+
- run: pip install mkdocs-git-authors-plugin
40+
- run: pip install mkdocs-minify-plugin
41+
- run: pip install mkdocs--plugin
42+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)