Skip to content

rostemplate-gh-pages #374

rostemplate-gh-pages

rostemplate-gh-pages #374

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
workflow_dispatch:
push:
branches: [main, master]
tags: ['*']
schedule:
- cron: '0 12 * * 3'
name: rostemplate-gh-pages
jobs:
rostemplate-gh-pages:
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AEMET_API_KEY: ${{ secrets.AEMET_API_KEY_PKGDOWN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
local::.
any::pkgdown
any::styler
ropenspain/rostemplate
needs: website
- name: Deploy package
run: |
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, run_dont_run = TRUE, clean = TRUE)'