Skip to content

Commit

Permalink
Create build-deploy-wasm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alicja-januszkiewicz authored Apr 30, 2024
1 parent c824936 commit 5327a99
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-deploy-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy to gh-pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build app
run: ./wasm-bindgen-macroquad.sh cubic --release

- name: Deploy to gh-pages
run: |
git config --global user.email "[email protected]"
git config --global user.name "Alicja Januszkiewicz"
git checkout --orphan gh-pages
git rm -rf .
git clean -dfx
mv dist/* . # Move artifacts to root directory
git add .
git commit -m "Deploy binary artifact to gh-pages"
git push origin gh-pages --force

0 comments on commit 5327a99

Please sign in to comment.