Skip to content

try JamesIves/github-pages-deploy-action #6

try JamesIves/github-pages-deploy-action

try JamesIves/github-pages-deploy-action #6

Workflow file for this run

on:
push:
paths-ignore:
- '_site/**'
name: Render & Deploy Site
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
http-user-agent: 'release'
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies
run: |
install.packages("rmarkdown")
install.packages("devtools")
shell: Rscript {0}
- name: Render Site
run: Rscript -e 'rmarkdown::render_site(encoding = "UTF-8")'
# - name: Commit results
# run: |
# git add -A
# git commit -m 'Rebuild site' || echo "No changes to commit"
# git push origin || echo "No changes to commit"
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: _site