forked from carapace-sh/carapace
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 861 Bytes
/
doc.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
name: Doc
on:
push:
branches:
- 'master'
jobs:
doc:
runs-on: ubuntu-latest
container: ghcr.io/rsteube/carapace
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
key: linkcheck
path: docs/book/linkcheck
- name: "build docs"
run: |
mdbook build docs
- name: "push gh-pages"
if: github.ref == 'refs/heads/master'
run: |
cd docs/book/html/
git init
git config user.name rsteube
git config user.email [email protected]
git add .
git commit -m "initial commit [ci skip]"
git push --force https://rsteube:${GITHUB_TOKEN}@github.com/rsteube/carapace.git master:gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}