-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,28 +21,18 @@ jobs: | |
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
# only need if using R analyses in quarto | ||
# - name: Install dependencies | ||
# run: | | ||
# sudo apt-get install -y pandoc libxml2-dev | ||
# Rscript -e 'install.packages("quarto", lib = "/tmp")' # Install quarto in /tmp | ||
# Rscript -e '.libPaths(c("/tmp", .libPaths())); library(quarto)' # Set library path | ||
|
||
# - name: Render Quarto Project | ||
# run: quarto render | ||
# | ||
# - name: Deploy to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v4 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# cname: projects.ecoforecast.org | ||
|
||
- name: Render and Publish | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
publish_dir: ./docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Render | ||
run: | | ||
quarto render | ||
- name: Publish | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout gh-pages | ||
cp -r docs/* . | ||
git add . | ||
git commit -a -m "update pages" || echo "nothing to commit" | ||
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY} | ||