Skip to content

Commit

Permalink
Update actual site pkgdown and remove config as yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pchelle committed Jan 26, 2024
1 parent f614c1a commit f7d221e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 30 deletions.
File renamed without changes.
57 changes: 27 additions & 30 deletions .github/workflows/site-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,33 @@ on:
- closed

jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch repo status
uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Setup Pandoc for word conversion
uses: r-lib/actions/setup-pandoc@v2
- name: Install ospsuite ecosystem and cran packages
run: |
Rscript .github/workflows/install_dependencies.R
- name: Copy pkgdown config
run: |
file.copy(from = '.github/workflows/_pkgdown.yml', to = '_pkgdown.yml', overwrite = TRUE)
shell: Rscript {0}
- name: Build dev site
run: |
pkgdown::build_site_github_pages()
pkgdown:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Setup Pandoc for word conversion
uses: r-lib/actions/setup-pandoc@v2
- name: Install ospsuite ecosystem and cran packages
run: |
Rscript .github/workflows/install_dependencies.R
- name: Copy pkgdown config
run: |
file.copy(from = '.github/workflows/_pkgdown', to = '_pkgdown.yml', overwrite = TRUE)
shell: Rscript {0}
- name: Build dev site
run: |
pkgdown::build_site_github_pages()
shell: Rscript {0}
- name: Deploy to GitHub pages
uses: JamesIves/[email protected]
Expand Down

0 comments on commit f7d221e

Please sign in to comment.