Skip to content

Commit

Permalink
ci: use gh-pages & _site folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Mar 14, 2024
1 parent 4dac15e commit 0e0d13c
Show file tree
Hide file tree
Showing 36 changed files with 13 additions and 26,920 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/render-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ on:
push:
branches: main

permissions:
contents: write

name: Render & Deploy Site

jobs:
build:
runs-on: macOS-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand All @@ -23,8 +26,9 @@ jobs:

- 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 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: "_site" # The folder the action should deploy.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
# User-specific files ----
README.html
inst/doc

_site
2 changes: 1 addition & 1 deletion _site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ base_url: https://theodatasci.github.io
repository_url: https://github.com/theodatasci/theodatasci.github.io
creative_commons: CC BY
favicon: img/favicon.png
output_dir: "."
output_dir: "_site"
navbar:
logo:
image: img/logo-theodatasci_150dpi.png
Expand Down
2,415 changes: 0 additions & 2,415 deletions index.html

This file was deleted.

Loading

0 comments on commit 0e0d13c

Please sign in to comment.