Skip to content

Commit

Permalink
no rebuild book on push to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 21, 2024
1 parent c8879f4 commit b7a7149
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 78 deletions.
78 changes: 0 additions & 78 deletions .github/workflows/build_book.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/update_book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rebuild and deploy book to gh-pages branch
on:
push:
branches:
- production
paths:
- 'index.Rmd'
- '_bookdown.yml'
- '_output.yml'
- 'source/*.Rmd'
- 'source/*.bib'
- 'source/*.css'
- 'data/**'
- 'img/**'
- 'build_html.sh'

jobs:
deploy-book:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- name: checkout gh-pages
uses: actions/checkout@v2
with:
ref: 'gh-pages'

- name: remove all pull and diff folders
run: |
rm -rf pull* diff*
- name: copy dev website to root directory
run: |
yes | cp -rf dev/* .
- name: push the result to gh-pages
uses: stefanzweifel/git-auto-commit-action@v5

0 comments on commit b7a7149

Please sign in to comment.