Skip to content

Commit

Permalink
Update GHA to match adodown
Browse files Browse the repository at this point in the history
See this PR for more details lsms-worldbank/adodown#23
  • Loading branch information
arthur-shaw committed Jan 30, 2024
1 parent 46e287a commit b2bebe7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_adodown_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
name: Build Site

jobs:
adodown:
adodownr:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

Expand All @@ -25,7 +25,7 @@ jobs:
with:
version: 1.0.37

- name: Install dependencies
- name: Install Linux system dependencies
run: |
sudo apt-get install -y make
sudo apt-get install -y libcurl4-openssl-dev
Expand All @@ -49,22 +49,22 @@ jobs:
run: install.packages("devtools")
shell: Rscript {0}

- name: Install adodown
run: devtools::install_github("arthur-shaw/adodown")
- name: Install adodownr
run: devtools::install_github("lsms-worldbank/adodownr")
shell: Rscript {0}

- name: Install here
run: install.packages("here")
shell: Rscript {0}

- name: Build site
run: adodown::build_site(pkg_dir = here::here(), site_dir = here::here())
run: adodownr::build_site(pkg_dir = here::here(), site_dir = here::here(), rm_old_site_dir = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean: false
clean: true
folder: docs
branch: gh-pages
target-folder: docs

0 comments on commit b2bebe7

Please sign in to comment.