diff --git a/.github/workflows/pr_actions.yml b/.github/workflows/pr_actions.yml new file mode 100644 index 0000000..e20dbec --- /dev/null +++ b/.github/workflows/pr_actions.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 0000000..fd831fd --- /dev/null +++ b/.github/workflows/website.yml @@ -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 \ No newline at end of file