Skip to content

Commit

Permalink
Add Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie-Pierre Etienne committed Jul 22, 2024
1 parent ab2d8a3 commit 72b81f8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

jobs:
build:
name: Build website with rmarkdown
runs-on: ubuntu-latest
container: stateofther/r-finistr2024:0.1

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Additional Packages
run: Rscript -e "install.packages(c('tictoc'))"
- name: Generate slides
run: "quarto render"
25 changes: 25 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: website
on:
push:
branches:
- main

jobs:
build:
name: Build website with rmarkdown
runs-on: ubuntu-latest
container: stateofther/r-finistr2024:0.1


steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Additional Packages
run: Rscript -e "install.packages(c('tictoc'))"
- name: Generate slides
run: "quarto render"
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site

0 comments on commit 72b81f8

Please sign in to comment.