forked from warpem/warp
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) 路 1.08 KB
/
Copy pathdocs.yml
File metadata and controls
43 lines (36 loc) 路 1.08 KB
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
37
38
39
40
41
42
43
# This workflow installs mkdocs-material and itsdependencies,
# builds the docs, and pushes the built site to the `gh-pages` branch
# of the warpem.github.io repository.
name: docs
on:
push:
branches:
- main
jobs:
deploy-docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install mkdocs-material
# Build the docs
- name: Build the docs
run: |
mkdocs build
# Push the site to the gh-pages branch of warpem/warpem.github.io
# this means the site will be available at warpem.github.io
# rather than warpem.github.io/warp
- name: 馃殺 Deploy site
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: warpem/warpem.github.io
publish_dir: ./site