Filter wham-only DELs and scramble-only SVAs in CleanVcf & docs updates #251
Workflow file for this run
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
name: documentation | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- 'website/**' | |
push: | |
branches: [main] | |
paths: | |
- 'website/**' | |
jobs: | |
Test: | |
if: github.event_name != 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Test Build | |
run: | | |
cd website | |
if [ -e yarn.lock ]; then yarn install --frozen-lockfile; | |
elif [ -e package-lock.json ]; then npm ci; | |
else npm i; | |
fi | |
npm run build | |
Deploy: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Release to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: git | |
run: | | |
git config --global user.email "actions@gihub.com" | |
git config --global user.name "gh-actions" | |
cd website | |
if [ -e yarn.lock ]; then yarn install --frozen-lockfile; | |
elif [ -e package-lock.json ]; then npm ci; | |
else npm i; | |
fi | |
npx docusaurus build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website/build |