-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e78cd29
commit 2fb666f
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
name: Build and Deploy | ||
on: [push, pull_request] | ||
on: [push] | ||
permissions: | ||
contents: write | ||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-build-and-deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | ||
with: | ||
persist-credentials: false | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies | ||
run: | | ||
|
@@ -18,14 +19,13 @@ jobs: | |
- name: Install and Build | ||
run: | | ||
cd Docs/sphinx_documentation | ||
echo "Build the Sphinx documentation for IAMR." | ||
echo "Build the Sphinx documentation for incflo." | ||
make html | ||
- name: Deploy | ||
if: github.event_name == 'push' && github.repository == 'AMReX-Fluids/incflo' && github.ref == 'refs/heads/development' | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
uses: JamesIves/github-pages-deploy-action@4 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: Docs/sphinx_documentation/build/html # The folder the action should deploy. | ||
TARGET_FOLDER: docs_html # The folder the action should deploy to. | ||
|