Skip to content

Commit

Permalink
Use ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Mar 22, 2024
1 parent 2fb666f commit a58f658
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Build and Deploy
on: [push]
permissions:
on: [push, pull_request]
contents: write

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

jobs:
build-and-deploy:
concurrency: ci-build-and-deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,7 +29,8 @@ jobs:
if: github.event_name == 'push' && github.repository == 'AMReX-Fluids/incflo' && github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@4
with:
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.

0 comments on commit a58f658

Please sign in to comment.