Skip to content

Commit

Permalink
Revert to old workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 6, 2024
1 parent 13a9943 commit 4af888f
Showing 1 changed file with 25 additions and 30 deletions.
55 changes: 25 additions & 30 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,40 @@
#https://github.com/tidyverse/ggplot2/blob/main/.github/workflows/pkgdown.yaml
# https://github.com/Appsilon/shiny.blueprint
name: pkgdown
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
branches: [main]
workflow_dispatch:

name: pkgdown

permissions:
contents: write
jobs:
pkgdown:
main:
name: Build and publish website
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install R package dependencies
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: Configure git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: bot/github-pages
folder: docs
- name: Deploy to branch
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
shell: Rscript {0}
run: pkgdown::deploy_to_branch(branch = "bot/github-pages")

0 comments on commit 4af888f

Please sign in to comment.