Skip to content

Commit

Permalink
Merge pull request #129 from jbusecke/patch-6
Browse files Browse the repository at this point in the history
Potential follow up fix for #125
  • Loading branch information
brian-rose authored Oct 25, 2024
2 parents 28fde27 + 1393c0f commit 483afa5
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/deploy-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4

- name: Download merged artifact
if: inputs.is_preview != 'true'
uses: actions/download-artifact@v4
Expand All @@ -59,27 +61,33 @@ jobs:
unzip book.zip
rm -f book.zip
- name: Debug
run: pwd

- name: Debug
run: ls -la book/_build/html

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
if: |
(github.ref == 'refs/heads/main' && inputs.cname == 'None')
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ${{ inputs.publish_dir }}
CLEAN: true
KEEP_HISTORY: false
BASE_PATH: ${{ inputs.destination_dir }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ${{ inputs.publish_dir }}
clean: true
clean-exclude: "preview" # keep existing previews from other PRs
target-folder: ${{ inputs.destination_dir }}

- name: Deploy to GitHub Pages with custom domain
uses: JamesIves/github-pages-deploy-action@v4
if: |
(github.ref == 'refs/heads/main' && inputs.cname != 'None')
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ${{ inputs.publish_dir }}
CLEAN: true
KEEP_HISTORY: false
BASE_PATH: ${{ inputs.destination_dir }}
CNAME: ${{ inputs.cname }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ${{ inputs.publish_dir }}
clean: true
clean-exclude: "preview" # keep existing previews from other PRs
target-folder: ${{ inputs.destination_dir }}
CNAME: ${{ inputs.cname }} # how can we set this for the new action?

0 comments on commit 483afa5

Please sign in to comment.