Support desktop platforms with SDL2 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-playground: | |
name: build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Install and Build 🔧 | |
run: | | |
cd web/ui | |
npm install -g wasm-pack@0.12.1 | |
npm install | |
npm run wasm | |
npm run copy | |
npm run build | |
rm dist/wasm/.gitignore | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: web/ui/dist # The folder the action should deploy. | |
clean: false |