Skip to content

fix: license, formatting #8

fix: license, formatting

fix: license, formatting #8

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build WASM
run: |
chmod +x scripts/build_wasm.sh
./scripts/build_wasm.sh
- name: Build static files
run: |
mkdir -p dist/static/samples
cp -r static/* dist/static/
cp templates/index.html dist/index.html
cp static/samples/*.go dist/static/samples/
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4