Skip to content

improve white balance #41

improve white balance

improve white balance #41

on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
deploy:
name: Deploy preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust cache
uses: Swatinem/rust-cache@v1
with:
working-directory: wasm
- name: Install node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: 'svelte-app/yarn.lock'
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install node.js dependencies
working-directory: svelte-app
run: yarn install --frozen-lockfile
- name: Build (Rust)
run: wasm-pack -v build wasm --target web
- name: Build (Svelte)
working-directory: svelte-app
run: |
echo -e "${{ github.sha }}\n$(date)" > static/version.txt && \
yarn build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
github-token: ${{ SECRETS.GITHUB_TOKEN }}
publish-dir: svelte-app/build
alias: deploy-preview-${{ github.event.number }}
env:
NETLIFY_AUTH_TOKEN: ${{ SECRETS.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ SECRETS.NETLIFY_SITE_ID }}