Merge pull request #85 from varoonp123/refactor/constantTimeContactQuery #5
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: Web dev release -- Netlify | |
on: | |
push: | |
branches: | |
- main | |
env: | |
RUST_BACKTRACE: 1 | |
jobs: | |
wasm-publish: | |
name: Build and publish WASM-based game to Netlify dev branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install rust nightly toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
targets: wasm32-unknown-unknown | |
- name: Install bevy deps and binaryen for wasm optimization | |
run: | | |
set -euxo pipefail | |
sudo apt install -y lld g++ pkg-config libx11-dev libasound2-dev libudev-dev binaryen | |
shell: bash | |
- name: Build wasm assets | |
run: ./build_wasm.sh | |
- name: Publish test deployment to netlify | |
uses: netlify/actions/cli@master | |
with: | |
args: deploy --dir=out/ -m "$NETLIFY_DEPLOY_MESSAGE" --alias=dev | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_DEPLOY_MESSAGE: "Main branch preview deploy via GH Actions ${{ github.ref }}. Summary: ${{ github.event.head_commit.message}}" | |
ci-pass: | |
name: CI is green | |
runs-on: ubuntu-latest | |
needs: | |
- wasm-publish | |
steps: | |
- run: exit 0 | |