-
Notifications
You must be signed in to change notification settings - Fork 25
37 lines (32 loc) · 924 Bytes
/
deploy.yml
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
name: deploy
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'mkdocs.yml'
- 'requirements.txt'
- 'includes/**'
- 'overrides/**'
- 'src/**'
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- run: echo "MKM_VER=$(cat .mkdocs-material.version)" >> $GITHUB_ENV
- run: |
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git@${MKM_VER}
pip install -r requirements.txt
mkdocs gh-deploy --force
- uses: iRoachie/[email protected]
if: ${{ always() }}
with:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}