Skip to content

Commit

Permalink
Setup github pages deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
reu committed Jun 5, 2022
1 parent 7baa85c commit 27cf3b1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches: [master]

name: Generate GH Pages

jobs:
build:
name: Build GH Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: rustup target install wasm32-unknown-unknown
- run: cargo install -f wasm-bindgen-cli
- run: cargo build --release --target wasm32-unknown-unknown
- run: wasm-bindgen --out-dir wasm --target web target/wasm32-unknown-unknown/release/bevyroids.wasm

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./wasm

0 comments on commit 27cf3b1

Please sign in to comment.