Skip to content

test(deploy): Try other github actions deploy action #13

test(deploy): Try other github actions deploy action

test(deploy): Try other github actions deploy action #13

Workflow file for this run

name: deploy vite-app example
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache .cargo / target folder
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: wasm-pack
- run: cd examples/vite-app
- uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: "Build Bevy Examples"
run: cd examples/vite-app && pnpm build && pnpm github-pages-bundle
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: examples/vite-app/dist # The folder the action should deploy.