Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelvy committed Nov 22, 2024
1 parent d6ba3a5 commit dd64ca5
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ on:
schedule:
# Runs daily at midnight (EST)
- cron: '0 5 * * *'

jobs:
build:
runs-on: macOS-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2

- name: Install qpdf # dependency for R 4.4.2 on macOS
run: brew install qpdf

- name: Install brew dependencies
run: |
brew update
brew install qpdf
brew install gfortran
brew install libgit2
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.2'
Expand All @@ -28,18 +29,12 @@ jobs:
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.r-version }}-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.r-version }}-

- name: Install system dependencies
run: |
brew install libgit2
- name: Install dependencies
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -48,10 +43,9 @@ jobs:
remotes::install_deps(dependencies = TRUE)
remotes::install_github("surveydown-dev/surveydown@main")
shell: Rscript {0}

- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dd64ca5

Please sign in to comment.