forked from wso2/docs-apim
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 872 Bytes
/
gh-deploy.yml
File metadata and controls
36 lines (30 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy MkDocs with gh-deploy
on:
push:
branches: [ "4.6.0" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for gh-deploy
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
cd en
pip install -r requirements.txt
- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Deploy to GitHub Pages
run: |
cd en
mkdocs build --clean
touch site/.nojekyll
mkdocs gh-deploy --clean --ignore-version --message "Deploy from GitHub Actions with .nojekyll fix"