-
-
Notifications
You must be signed in to change notification settings - Fork 146
51 lines (43 loc) · 1.52 KB
/
docs.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Docs docs.leapp.cloud
on:
push:
branches:
- master
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-python-3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: install-dependencies
run: |
pip install mkdocs-material
pip install mkdocs-video
pip install mkdocs-img2fig-plugin
pip install mkdocs-git-revision-date-plugin
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
pip install mkdocs-minify-plugin
pip install mike
- name: get-leapp-version
run: |
echo "PACKAGE_VERSION=$(cat packages/desktop-app/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" >> $GITHUB_ENV
echo "${{env.PACKAGE_VERSION}}"
- name: deploy
run: |
git config --global user.name Alessandro Gaggia
git config --global user.email [email protected]
git fetch origin gh-pages --depth=1
cd packages/cli
npm install
npm run prepare-docs
cd ../..
mike deploy --no-redirect --force --push --update-aliases ${{env.PACKAGE_VERSION}} latest
mike set-default --push latest
- name: update-sitemap
run: curl https://www.google.com/ping?sitemap=https://docs.leapp.cloud/latest/sitemap.xml