Pr preview2 (#69)

This commit is contained in:
Dirk Klimpel 2024-02-02 23:05:32 +01:00 committed by GitHub
parent 0a443795ac
commit ff52b630d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 0 deletions

View File

@ -24,3 +24,4 @@ jobs:
with: with:
branch: gh-pages branch: gh-pages
folder: build folder: build
clean-exclude: pr-preview

View 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