Add docs section #6
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
on: | |
push: | |
branches: [main] | |
name: Render and deploy to Netlify and VirusBank | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
NETLIFY_SITE_ID: 284ddce0-61dd-40b7-ab79-8b5ac77ed457 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Assemble alpha/toolbox.json | |
uses: mikefarah/yq@master | |
with: | |
cmd: yq -M -o=json src/toolbox.yaml > toolbox/toolbox.json | |
- name: Create families.json based src/families.yaml | |
uses: mikefarah/yq@master | |
with: | |
cmd: yq -M -o=json src/families.yaml > families.json | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "4.2" | |
use-public-rspm: true | |
- name: Install rmarkdown | |
run: | | |
Rscript -e 'install.packages("rmarkdown")' | |
- name: Install Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: 1.4.549 | |
tinytex: true | |
- name: Render Quarto Project | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
to: html | |
- name: Deploy to Netlify 🚀 | |
uses: data-intuitive/netlify-deploy-site@v1 | |
with: | |
auth: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
site: ${{ env.NETLIFY_SITE_ID }} | |
dir: "_site" | |
prod: true | |
message: "Deploy production ${{ github.ref }}" | |
- name: Deploy preview to VirusBank | |
id: deploy_virusbank | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp.virusbankplatformorg.webhosting.be | |
username: floor@virusbankplatformorg | |
password: ${{ secrets.FTP_AUTH_SECRET }} | |
local-dir: "./_site/" | |
log-level: standard | |
# dangerous-clean-slate: true |