Skip to content

Update deploy-github-pages.yml (#45) #10

Update deploy-github-pages.yml (#45)

Update deploy-github-pages.yml (#45) #10

name: Deploy Github Pages
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container:
image: emscripten/emsdk
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build WASM
run: |
chmod +x build.sh
./build.sh
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: page
path: build
if-no-files-found: error
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: page
path: .
- name: Configure Pages
uses: actions/configure-pages@v2
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: .
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v1