From a58f65807bf8323ca4a8547dbdc03ad999082430 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Fri, 22 Mar 2024 12:28:27 -0700 Subject: [PATCH] Use ssh key --- .github/workflows/docs.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d21fc9b9..61e71a46 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 @@ -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.