Skip to content

Commit

Permalink
Update actions for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan authored Apr 11, 2024
1 parent 7ec4fab commit 12276fd
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/rogtemplate-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,28 @@ on:
push:
branches: [main, master]
tags: ['*']
paths-ignore:
- 'README.Rmd'
repository_dispatch:
types: [trigger-pkgdown-workflow]
workflow_dispatch:

name: rogtemplate-gh-pages

jobs:
rogtemplate-gh-pages:
runs-on: ubuntu-latest
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

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

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
magick
local::.
ropengov/rogtemplate
needs: website
Expand All @@ -51,6 +47,6 @@ jobs:

- name: Deploy package
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'

0 comments on commit 12276fd

Please sign in to comment.