Spaces:
Runtime error
Runtime error
add: docs deploy ci job
Browse files- .github/workflows/deploy.yml +26 -0
.github/workflows/deploy.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Deploy
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches:
|
| 5 |
+
- main
|
| 6 |
+
permissions:
|
| 7 |
+
contents: write
|
| 8 |
+
id-token: write
|
| 9 |
+
|
| 10 |
+
jobs:
|
| 11 |
+
documentation:
|
| 12 |
+
name: update documentations on gitHub pages
|
| 13 |
+
runs-on: ubuntu-latest
|
| 14 |
+
steps:
|
| 15 |
+
- uses: actions/checkout@v3
|
| 16 |
+
- uses: actions/setup-python@v4
|
| 17 |
+
with:
|
| 18 |
+
python-version: 3.11
|
| 19 |
+
- uses: actions/cache@v2
|
| 20 |
+
with:
|
| 21 |
+
key: ${{ github.ref }}
|
| 22 |
+
path: .cache
|
| 23 |
+
- run: |
|
| 24 |
+
pip install --upgrade pip
|
| 25 |
+
pip install .[docs]
|
| 26 |
+
- run: mkdocs gh-deploy --force
|