-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.14 KB
/
build.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
name: Build Documentation
on:
push:
branches: [development]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ci-workflow
cancel-in-progress: true
permissions:
contents: write # Required to read repository contents
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r Docs/requirements.txt
- name: Build documentation
run: |
cd Docs
make clean
make html
touch build/html/.nojekyll
- name: List modified files
run: git status
- name: deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@v4
with:
repository-name: AMReX-Microelectronics/AMReX-Microelectronics.github.io
branch: gh-pages
folder: ${{ github.workspace }}/Docs/build/html
clean: true
commit-message: "Force update - $(date +'%Y-%m-%d %H:%M:%S')"