forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 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
name: Build and Deploy
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-docs
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Dependencies
run: |
.github/workflows/dependencies/documentation.sh
python3 -m pip install --upgrade pip
python3 -m pip install sphinx==5.0.0 sphinx_rtd_theme
- name: Install and Build
run: |
./build_docs.sh
- name: Deploy
if: github.event_name == 'push' && github.repository == 'AMReX-Codes/amrex' && github.ref == 'refs/heads/development'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCESS_TOKEN: ${{ secrets.DEPLOY_DOCS }}
REPOSITORY_NAME: AMReX-Codes/AMReX-Codes.github.io
BRANCH: main # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
TARGET_FOLDER: amrex # The folder the action should deploy to.
CLEAN: false # Do not remove existing files from the deploy target.