Skip to content

Reload if not crossOriginIsolated, even if service worker is controll… #8

Reload if not crossOriginIsolated, even if service worker is controll…

Reload if not crossOriginIsolated, even if service worker is controll… #8

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: Deploy Emscripten build to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["develop"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
env:
EM_VERSION: 3.1.63
EM_CACHE_FOLDER: 'emsdk-cache'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v4
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Build Emscripten port
run: |
cd ports/emscripten
mkdir dist
yarn
yarn build:all -- --production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ports/emscripten/dist/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4