Skip to content

add fallback options for too many input genes #4

add fallback options for too many input genes

add fallback options for too many input genes #4

name: Build and Deploy pkgdown
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout tkoi
uses: actions/checkout@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies
run: sudo apt-get install -y libsodium-dev libcurl4-openssl-dev libssl-dev libxml2-dev
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
pkgdown
any::devtools
- name: Build pkgdown site
run: Rscript -e "pkgdown::build_site()"
- name: Deploy to baranzinilab.github.io
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git clone https://x-access-token:${{ secrets.PAGES_PAT }}@github.com/BaranziniLab/baranzinilab.github.io.git pages_repo
rm -rf pages_repo/tkoi
cp -r docs pages_repo/tkoi
cd pages_repo
git add tkoi/
git diff --cached --quiet || git commit -m "Auto-deploy tkoi docs from commit ${{ github.sha }}"
git push
cd ..
rm -rf pages_repo