Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update build and deploy #91

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Build and Deploy
on: [push, pull_request]

concurrency:
group: ${{ github.head_ref }}-docs
cancel-in-progress: true

jobs:
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: |
Expand All @@ -18,15 +21,15 @@ 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@v4
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.
CLEAN: false # Do not remove existing files from the deploy target.
ssh-key: ${{ secrets.DEPLOY_KEY }}
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.
clean: false # Do not remove existing files from the deploy target.
Loading