From dd64ca55fbc2662f32b581082c8196442ca78017 Mon Sep 17 00:00:00 2001 From: emse-p4a-gwu Date: Fri, 22 Nov 2024 12:07:23 -0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 827616cd..37887707 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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' @@ -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 }} @@ -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 }} \ No newline at end of file