Skip to content

Commit

Permalink
chore: run PR preview on pull_request (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
BBSQQ authored Sep 30, 2020
1 parent 5c81f9e commit 2ae8895
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 🔂 Surge PR Preview

on: [push, pull_request]

jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: afc163/surge-preview@v1
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
build: |
yarn
yarn site:build
dist: public
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"tslib": "^1.13.0"
},
"devDependencies": {
"@antv/gatsby-theme-antv": "^1.0.0-beta.4",
"@antv/gatsby-theme-antv": "^1.0.0-beta.8",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@commitlint/cli": "^8.2.0",
Expand Down Expand Up @@ -136,4 +136,4 @@
}
],
"license": "MIT"
}
}

0 comments on commit 2ae8895

Please sign in to comment.