-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: 🔧 add files to auto-build website #4
Changes from 7 commits
b4f5746
ad1a606
acdedb6
9a4efb8
75d3973
25aff2e
58cdf1a
04b4a15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build website to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
# You need these permissions to publish to GitHub pages | ||
permissions: | ||
contents: write | ||
pages: write | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tinytex: false | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install R package dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: 2 | ||
|
||
- name: Publish to GitHub Pages (and render) | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
# This secret is always available for github actions | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
# RStudio and R files | ||
.Rbuildignore | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata | ||
.Rdata | ||
|
||
# Temporary files | ||
*.tmp | ||
|
||
# Authentication files | ||
.httr-oauth | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Quarto | ||
/.quarto/ | ||
|
||
# Website generation | ||
_site | ||
_book | ||
_freeze | ||
*_files | ||
*.html | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Package: ideg.mediation.course | ||
Type: Website | ||
Version: 0.1 | ||
Title: "Mediation course" | ||
Depends: | ||
R (>= 3.6.0), | ||
tidyverse | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Imports: | ||
CMAverse, | ||
DiagrammeR, | ||
DiagrammeRsvg, | ||
dplyr, | ||
here, | ||
knitr, | ||
medflex, | ||
mediation, | ||
readr, | ||
rmarkdown |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
project: | ||
type: book | ||
# pre-render: quarto render slides/*.qmd | ||
# resources: | ||
# - slides/*.html | ||
|
||
book: | ||
title: "Mediation course" | ||
author: | ||
- Jie Zhang | ||
- Daniel Witte | ||
date: last-modified | ||
repo-url: https://github.com/steno-aarhus/IDEG-mediation-course | ||
site-url: https://steno-aarhus.github.io/IDEG-mediation-course | ||
chapters: | ||
- index.qmd | ||
- part: "Preamble" | ||
- part: "Sessions" | ||
chapters: | ||
- sessions/welcome.qmd | ||
- sessions/motivation.qmd | ||
- sessions/traditional-mediation-analysis.qmd | ||
appendices: | ||
- appendix/welcome.qmd | ||
Comment on lines
+15
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section is where you add the files you want put onto the website. Unfortunately, you can't put slide files here. But we deal with that when you get to it. I didn't put anything into |
||
page-footer: | ||
center: | ||
- text: "License: CC BY 4.0" | ||
|
||
format: html | ||
|
||
editor: | ||
markdown: | ||
wrap: 72 | ||
canonical: true |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is what auto-builds the website and puts it online. You don't need to touch it or change it at all.