Skip to content

Commit 7371e39

Browse files
committed
try new mkdocs action
1 parent e78a70f commit 7371e39

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/mkdocs.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ on:
44
branches:
55
- main
66

7+
permissions:
8+
contents: write
9+
710
jobs:
8-
build:
9-
name: Deploy docs
11+
deploy:
1012
runs-on: ubuntu-latest
1113
steps:
12-
- name: Checkout main
13-
uses: actions/checkout@v3
14-
15-
- name: Deploy docs
16-
#uses: quinlan-lab/proj-mutator-mapping@master
17-
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
#CUSTOM_DOMAIN: optionaldomain.com
21-
CONFIG_FILE: mkdocs.yml
22-
#EXTRA_PACKAGES: build-base
23-
# GITHUB_DOMAIN: github.myenterprise.com
24-
REQUIREMENTS: requirements.txt
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-python@v4
16+
with:
17+
python-version: 3.x
18+
- uses: actions/cache@v2
19+
with:
20+
key: ${{ github.ref }}
21+
path: .cache
22+
- run: pip install mkdocs-material
23+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)