Skip to content

Merge pull request #7 from ruuzia/dev #119

Merge pull request #7 from ruuzia/dev

Merge pull request #7 from ruuzia/dev #119

Workflow file for this run

name: Build Emscripten and Publish Pages
on:
push:
branches: [ "master" ]
env:
EM_VERSION: 'latest'
EM_CACHE_FOLDER: 'emsdk-cache'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout pages branch
uses: actions/checkout@v3
with:
ref: pages
- name: Overwrite with master
run: |
git fetch origin
git reset --hard origin/master
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v2
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v11
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Build
run: ./build_emcc.sh -O2
- name: Commit files
run: |
echo ${{ github.ref }}
git add docs
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "CI: Automated build push" -a | exit 0
- name: Push changes
run: |
git push --force