mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
feat: add preview workflow (#93)
* feat: add preview workflow * chore: update workflow * fix: workflow configuration
This commit is contained in:
parent
1f5434fa07
commit
f07ffc944f
20
.github/workflows/preview.yml
vendored
Normal file
20
.github/workflows/preview.yml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user