Skip to content

chore: 为了避免作为库被引用时报错,将生成出的代码提交到仓库中 #53

chore: 为了避免作为库被引用时报错,将生成出的代码提交到仓库中

chore: 为了避免作为库被引用时报错,将生成出的代码提交到仓库中 #53

Workflow file for this run

name: Build Js Port
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install peg
run: |
go get -u github.com/pointlander/[email protected]
go install github.com/pointlander/[email protected]
- name: Install gopherjs
run: |
go get -u github.com/gopherjs/[email protected]
go install github.com/gopherjs/[email protected]
- name: Code gen
run: peg -switch -inline roll.peg
- name: Build
run: gopherjs build github.com/sealdice/dicescript/jsport -o jsport/dicescript.js
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.MY_TOKEN }}
publish_dir: ./jsport