mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
Create surge-preview.yml
This commit is contained in:
20
.github/workflows/surge-preview.yml
vendored
Normal file
20
.github/workflows/surge-preview.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: 🔂 Surge PR Preview
|
||||||
|
|
||||||
|
on: pull_request_target
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
preview:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
- uses: afc163/surge-preview@v1
|
||||||
|
with:
|
||||||
|
surge_token: ${{ secrets.SURGE_TOKEN }}
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
build: |
|
||||||
|
yarn
|
||||||
|
yarn docs-dev:build
|
||||||
|
dist: docs-dist
|
||||||
|
teardown: 'true'
|
Reference in New Issue
Block a user