Skip to content

Commit

Permalink
update action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lwaldron committed Sep 2, 2024
1 parent 893c770 commit 63796ce
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:

# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Cache R packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/R
key: ${{ runner.os }}-r-${{ hashFiles('**/DESCRIPTION') }}
Expand All @@ -48,20 +48,19 @@ jobs:
uses: r-lib/actions/setup-r-dependencies@v2

- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: |
rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "error", check_dir = "check")
shell: Rscript {0}
uses: r-lib/actions/check-r-package@v2
with:
args: "--no-manual"

- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd", output_file = "README.md")'

- name: Build pkgdown site
run: Rscript -e 'pkgdown::build_site()'

- name: Build pkgdown
run: |
PATH=$PATH:$HOME/bin/ Rscript -e 'rmarkdown::render("README.Rmd", output_file = "README.md")'
PATH=$PATH:$HOME/bin/ Rscript -e 'pkgdown::build_site(".")'

- name: Update README.md
uses: github-actions-x/commit@v2.9
uses: github-actions-x/commit@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'main'
Expand All @@ -72,15 +71,14 @@ jobs:
email: lwaldron.research@gmail.com

- name: Deploy ð
uses: JamesIves/github-pages-deploy-action@v4
uses: JamesIves/github-pages-deploy-action@v4.6.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
workspace: $GITHUB_WORKSPACE

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -90,9 +88,10 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ env.IMAGE_NAME }}:latest
github-token: ${{ secrets.GITHUB_TOKEN}}

0 comments on commit 63796ce

Please sign in to comment.