-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (45 loc) · 1.31 KB
/
sphinx.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
52
53
54
55
name: pages
on:
pull_request:
push:
schedule:
- cron: "0 3 * * *"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- id: deploy-on-push
run:
echo "::set-output name=result::${{ env.DEPLOY_BRANCH }}"
env:
DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH && contains(github.ref, secrets.DEPLOY_BRANCH) && 1 || 0 }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
- name: Build pages
run: |
make gettext html
- name: Create nojekyll file
run: |
touch _build/.nojekyll
- name: Create CNAME file
run: |
if [ ! -z ${CNAME// } ]; then
echo ${CNAME} > _build/CNAME
fi
env:
CNAME: ${{ secrets.CNAME }}
- uses: JamesIves/github-pages-deploy-action@4.1.6
if: ${{ github.event_name == 'push' }} #&& steps.deploy-on-push.outputs.result != 0 }}
with:
branch: gh-pages
folder: _build/html
single-commit: true
git-config-email: 53436240+fortran-lang@users.noreply.github.com
git-config-name: Fortran