swap js d2 for lua d2 #184
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
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
# to be able to trigger a manual build | |
workflow_dispatch: | |
name: Render project | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "4.2" | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-renv@v2 | |
- uses: viash-io/viash-actions/setup@v4 | |
- name: "Install d2" | |
run: | | |
curl -fsSL https://d2lang.com/install.sh | sh -s -- | |
- name: Install Viash | |
uses: viash-io/viash-actions/setup@main | |
- name: Install Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: 1.4.130 | |
- name: Render Quarto Project | |
uses: quarto-dev/quarto-actions/render@v2 | |
- name: Deploy 🚀 | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: _site | |
branch: gh-pages | |
force: false | |
clean-exclude: pr-preview/ | |
- name: Deploy preview | |
if: github.event_name == 'pull_request' | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: _site | |
preview-branch: gh-pages | |
umbrella-dir: pr-preview | |
action: auto |