Skip to content

rm wierd masking for image processing #35

rm wierd masking for image processing

rm wierd masking for image processing #35

Workflow file for this run

name: Build Project
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- created
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Node.js dependencies
run: npm install
working-directory: string-art-demo
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: jetli/wasm-pack-action@v0.4.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- name: Build WASM
run: ./build-wasm.sh
- name: Build static files
id: build
run: npm run build
working-directory: string-art-demo
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: string-art-demo/dist
- name: Create Release
if: github.event_name == 'release'
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4