Skip to content

Commit

Permalink
add back pkgdown build
Browse files Browse the repository at this point in the history
* was removed by 1a9f371
  • Loading branch information
jefferis committed Jun 30, 2024
1 parent a244ffd commit e8fa7ed
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::pkgdown, catmaid=natverse/rcatmaid
needs: check, website
needs: check

- name: Fix Conda permissions on macOS
if: runner.os == 'macOS'
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

permissions: read-all

jobs:
pkgdown:
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 }}
permissions:
contents: write
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: any::pkgdown, catmaid=natverse/rcatmaid, local::.
needs: website

- name: Install fafbseg + python
run: |
pak::local_install()
library(fafbseg)
simple_python(pkgs = 'fafbseg')
# simple_python('none', pkgs = 'caveclient==5.15.2')
# simple_python('none', pkgs = 'pyarrow==12.0.1')
dr_fafbseg()
shell: Rscript {0}

- 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/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
folder: docs
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Description: Access to the FANC EM dataset, focussing on support for
autosegmentation. Organised as a thin wrapper around the fafbseg
package.
License: GPL-3
URL: https://github.com/flyconnectome/fancr
URL: https://github.com/flyconnectome/fancr, https://flyconnectome.github.io/fancr/
BugReports: https://github.com/flyconnectome/fancr/issues
Depends:
R (>= 2.10),
Expand Down
7 changes: 4 additions & 3 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: https://flyconnectome.github.io/fancr
url: https://flyconnectome.github.io/fancr/
navbar:
structure:
left:
Expand All @@ -24,8 +24,9 @@ navbar:
href: https://github.com/flyconnectome/fancr/
natverse:
text: natverse
href: https://natverse.github.io
href: https://natverse.org
help:
text: Help
href: SUPPORT.html

template:
bootstrap: 5

0 comments on commit e8fa7ed

Please sign in to comment.