Skip to content

add missing regexp support #27

add missing regexp support

add missing regexp support #27

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: stable
- name: Build static files
id: build
run: |
BUILD_DIR="$(pwd)/../static_site"
mkdir -p "$BUILD_DIR"
GOOS=js GOARCH=wasm go build -o "${BUILD_DIR}/celfmt.wasm" ./cmd/wasm/
GOOS=js GOARCH=wasm go generate -x -v ./cmd/wasm
cp -p cmd/wasm/assets/* "$BUILD_DIR"
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: ../static_site
deploy:
permissions:
pages: write
id-token: write
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@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4