Pr preview2 (#69)
This commit is contained in:
parent
0a443795ac
commit
ff52b630d5
1
.github/workflows/edge_ghpage.yml
vendored
1
.github/workflows/edge_ghpage.yml
vendored
@ -24,3 +24,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: build
|
folder: build
|
||||||
|
clean-exclude: pr-preview
|
||||||
|
27
.github/workflows/pr-preview-ghpages.yaml
vendored
Normal file
27
.github/workflows/pr-preview-ghpages.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Deploy PR previews
|
||||||
|
concurrency: preview-${{ github.ref }}
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- closed
|
||||||
|
jobs:
|
||||||
|
deploy-preview:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "18"
|
||||||
|
- run: |
|
||||||
|
yarn install
|
||||||
|
yarn build
|
||||||
|
if: github.event.action != 'closed'
|
||||||
|
- uses: rossjrw/pr-preview-action@v1
|
||||||
|
with:
|
||||||
|
source-dir: ./build/
|
||||||
|
preview-branch: gh-pages
|
||||||
|
umbrella-dir: pr-preview
|
||||||
|
action: auto
|
Loading…
Reference in New Issue
Block a user