-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (44 loc) · 1.24 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
on:
push:
branches:
- master
jobs:
gh-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: "gh-pages"
- name: "install_nim"
id: install_nim
uses: iffy/install-nim@v3
- name: Set CI config github
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Fetch
run: git fetch
- name: Rebase
run: git rebase -Xours origin/master
- name: NimbleDevelop
run: nimble develop -y
- name: Install fftw3
run: nimble localinstallfftw
env:
LD_LIBRARY_PATH: ${PWD}/third_party/lib
- name: Gendoc
run: nimble gendoc
env:
LD_LIBRARY_PATH: ${PWD}/third_party/lib
- name: Commit files
run: |
echo ${{ github.ref }}
git add -f docs
git commit -m "CI: Automated build push" -a | exit 0
- name: Force push to destination branch
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./docs