Skip to content

Commit

Permalink
Merge pull request #113 from egouldo/egouldo-patch-2
Browse files Browse the repository at this point in the history
Update pkgdown.yaml
  • Loading branch information
egouldo authored Aug 14, 2024
2 parents 42b1e38 + 7f33226 commit 717c1b7
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
types: [closed]
release:
branches: [main]
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
if: github.event.pull_request.merged == true
if: >-
github.event.pull_request.merged == true ||
github.event.release == true ||
github.event.workflow_dispatch == true
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
Expand All @@ -24,30 +27,23 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- run: sudo apt-get install -y libglpk40

- uses: r-lib/actions/setup-renv@v2

- run: R CMD INSTALL .

# - uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::pkgdown, local::.
# needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
if: >-
github.event.pull_request.merged == true ||
github.event.release == true ||
github.event.workflow_dispatch == true
uses: JamesIves/[email protected]
with:
clean: true
Expand Down

0 comments on commit 717c1b7

Please sign in to comment.