Skip to content

严格模式的声明语句错了 #39

严格模式的声明语句错了

严格模式的声明语句错了 #39

Workflow file for this run

name: gh-pages
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build
env:
DENO_INSTALL: /home/runner/.deno
run: |
curl -fsSL https://deno.land/x/install/install.sh | sh
export PATH="$DENO_INSTALL/bin:$PATH"
deno --version
deno upgrade --version 1.4.2
deno install --unstable --allow-env --allow-read --allow-write --allow-net -n pagic https://deno.land/x/[email protected]/mod.ts
pagic build
- name: Deploy
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: cn.history.js.org