Skip to content

Commit

Permalink
updated pkgdown.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MicTott committed Feb 15, 2024
1 parent ec0a2e9 commit e67cc02
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [devel] # Trigger on push to 'devel' branch
pull_request:
branches: [main, master]
branches: [devel] # Trigger on PR to 'devel' branch
release:
types: [published]
workflow_dispatch:
workflow_dispatch: # Allows manual triggering of the workflow

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
group: ${{ github.workflow }}-${{ github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
Expand All @@ -32,7 +31,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
extra-packages: any::pkgdown
needs: website

- name: Build site
Expand All @@ -43,6 +42,6 @@ jobs:
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
clean: false # Keeps existing files on gh-pages that are not present in the current build
branch: gh-pages # Target branch for the site deployment
folder: docs # The folder where pkgdown outputs the site, adjust if your output directory is different

0 comments on commit e67cc02

Please sign in to comment.