Bump JamesIves/github-pages-deploy-action from 4.6.8 to 4.6.9 #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2024 Roberto Rossini ([email protected]) | |
# SPDX-License-Identifier: MIT | |
name: Deploy pkgdown website | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
paths: | |
- ".github/workflows/pkgdown.yml" | |
- "R/**" | |
- "src/**" | |
- "tests/**" | |
- "conanfile.txt" | |
- "run_conan.py" | |
- "DESCRIPTION" | |
- "NAMESPACE" | |
tags: | |
- 'v*.*.*' | |
pull_request: | |
branches: [main] | |
paths: | |
- ".github/workflows/pkgdown.yml" | |
- "R/**" | |
- "src/**" | |
- "tests/**" | |
- "conanfile.txt" | |
- "run_conan.py" | |
- "DESCRIPTION" | |
- "NAMESPACE" | |
release: | |
types: [published] | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Generate requirements.txt | |
run: | | |
echo 'conan>=2' > requirements.txt | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: 'pip' | |
- name: Install Conan | |
run: pip install -r requirements.txt | |
- name: Install pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Add requirements | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::pkgdown, local::. | |
needs: website | |
- name: Build site | |
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | |
shell: Rscript {0} | |
- name: Deploy to GitHub pages 🚀 | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/[email protected] | |
with: | |
clean: false | |
branch: gh-pages | |
folder: docs |