Skip to content

add File Upload to Wurbo example form #13

add File Upload to Wurbo example form

add File Upload to Wurbo example form #13

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
on:
push:
branches: ['main']
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: npm
- name: Install dependencies
run: npm install
- name: Set up Rust
uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-unknown-unknown, wasm32-wasi
toolchain: nightly-x86_64-unknown-linux-gnu
components: rust-src, rustfmt
- name: Install binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-component v0.13.2
run: echo yes | cargo binstall [email protected]
- name: Cargo component build Workspace
run: |
cargo component build --workspace
cargo component build --workspace --release
- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
npm run build
touch docs/.nojekyll
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
# this should match the `pages` option in your adapter-static options
path: 'docs/'
deploy:
needs: build_site
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/configure-pages@v3
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2