严格模式的声明语句错了 #38
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |