Skip to content

Commit

Permalink
20240104 - Quarto render and commit to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
isaactpetersen committed Jan 4, 2024
1 parent af35187 commit 2342f77
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main

name: Quarto Publish
name: Quarto Render

jobs:
build-deploy:
Expand Down Expand Up @@ -37,10 +37,16 @@ jobs:
#- name: Install remote packages
# run: |
# Rscript -e 'remotes::install_github("DevPsyLab/petersenlab")'
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
to: html # If set, it will be equivalent to `quarto render --to html`

- name: Commit to GitHub
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add . -f
git commit -m 'Re-build wiki' || echo "No changes to commit"
git push origin || echo "No changes to commit"

0 comments on commit 2342f77

Please sign in to comment.