Revert "feat: add pr preview ci"
This reverts commit 0c740538617742949db137cf523dcc7a631eb1bd.
This commit is contained in:
parent
0c74053861
commit
29d573b3e3
41
.github/workflows/preview.yml
vendored
41
.github/workflows/preview.yml
vendored
@ -1,41 +0,0 @@
|
|||||||
name: Preview webui
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
paths:
|
|
||||||
- 'webui/**'
|
|
||||||
types: [opened, synchronize, reopened, closed]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
preview:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '14'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
cd webui/
|
|
||||||
npm install
|
|
||||||
|
|
||||||
- name: Build webui
|
|
||||||
run: |
|
|
||||||
cd webui/
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
- uses: afc163/surge-preview@v1
|
|
||||||
id: preview_step
|
|
||||||
with:
|
|
||||||
surge_token: ${{ secrets.SURGE_TOKEN }}
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
teardown: 'true'
|
|
||||||
dist: webui/build
|
|
||||||
build: |
|
|
||||||
echo "dummy"
|
|
||||||
|
|
||||||
- name: Get the preview_url
|
|
||||||
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"
|
|
Loading…
x
Reference in New Issue
Block a user