|
4 | 4 | push: |
5 | 5 | branches: |
6 | 6 | - main # Or 'master', depending on your repository's default branch |
| 7 | + workflow_dispatch: |
7 | 8 |
|
8 | 9 | jobs: |
9 | 10 | build-deploy: |
10 | 11 | runs-on: ubuntu-22.04 |
11 | | - # Use a specific container version for reproducibility |
12 | 12 | container: rocker/verse:4.4 |
13 | | - # Set minimum required permissions for the GITHUB_TOKEN |
14 | 13 | permissions: |
15 | | - contents: read # To check out the repository |
16 | | - pages: write # To deploy to GitHub Pages |
| 14 | + contents: write |
| 15 | + pages: write |
17 | 16 |
|
18 | 17 | steps: |
19 | | - # CRITICAL: The cross-repository trigger using a PAT has been removed |
20 | | - # due to major security risks. Consider using reusable workflows instead. |
21 | | - |
22 | 18 | - name: Checkout Repository |
23 | 19 | uses: actions/checkout@v4 |
24 | 20 |
|
25 | 21 | - name: Setup R |
26 | 22 | uses: r-lib/actions/setup-r@v2 |
27 | 23 | with: |
28 | | - r-version: '4.4' # Specify R version |
| 24 | + r-version: '4.4' |
29 | 25 |
|
30 | 26 | - name: Cache R package dependencies |
31 | 27 | uses: actions/cache@v4 |
|
38 | 34 | - name: Install R package dependencies |
39 | 35 | uses: r-lib/actions/setup-r-dependencies@v2 |
40 | 36 | with: |
41 | | - # This action reads your DESCRIPTION file to install dependencies |
42 | 37 | packages: any::remotes, any::pkgdown |
43 | 38 |
|
| 39 | + - name: Install local package |
| 40 | + run: Rscript -e "remotes::install_local()" |
| 41 | + |
| 42 | + - name: Install LaTeX Beamer |
| 43 | + run: sudo apt-get update && sudo apt-get install -y texlive-latex-extra rsync |
| 44 | + |
44 | 45 | - name: Build pkgdown site |
45 | 46 | run: Rscript -e 'pkgdown::build_site()' |
46 | 47 |
|
|
56 | 57 | - name: Deploy to GitHub Pages 🚀 |
57 | 58 | uses: JamesIves/github-pages-deploy-action@v4 |
58 | 59 | with: |
59 | | - # GITHUB_TOKEN is used by default, no need to specify |
60 | | - branch: gh-pages # The branch the action should deploy to |
61 | | - folder: docs # The folder the action should deploy |
| 60 | + branch: gh-pages |
| 61 | + folder: docs |
0 commit comments