Skip to content

Commit

Permalink
feat: add preview workflow (doocs#93)
Browse files Browse the repository at this point in the history
* feat: add preview workflow

* chore: update workflow

* fix: workflow configuration
  • Loading branch information
yanglbme authored Nov 24, 2021
1 parent 1f5434f commit f07ffc9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Surge Preview

on:
pull_request:
types: [opened, synchronize, reopened, closed]

jobs:
preview:
runs-on: ubuntu-latest
if: github.repository == 'doocs/md'
steps:
- uses: actions/checkout@v2
- uses: afc163/surge-preview@main
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: dist
build: |
npm install
npm run build:h5-netlify

0 comments on commit f07ffc9

Please sign in to comment.