This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
rustboyadvance-ng/.github/workflows/deploy.yml
Michel Heily 0d8a5467e0 Fix deploy.yml
Former-commit-id: e51b52c427481dcc670cc68e25759103c2ae3455
2020-04-13 23:49:15 +03:00

41 lines
1,006 B
YAML

name: Deploy
on:
push:
branches:
- master
jobs:
deploy-web-app:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
- name: Setup Node.js
uses: actions/setup-node@v1
- name: Setup wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
- name: Build rustboyadvance-wasm
run: |
wasm-pack build platform/rustboyadvance-wasm --release -- --features "wee_alloc"
- name: Build WebApp
run: |
cd ./platform/rustboyadvance-wasm/app
npm install
npm run build
- name: "Deploy 🚀"
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: '${{ secrets.ACCESS_TOKEN }}'
BRANCH: gh-pages
FOLDER: platform/rustboyadvance-wasm/app/dist
CLEAN: yes
SINGLE_COMMIT: yes