Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github preview deploy #211

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# .github/workflows/preview.yml

Check failure on line 1 in .github/workflows/deploy.yml

View workflow job for this annotation

GitHub Actions / Prettier

.github/workflows/deploy.yml#L1

There are issues with this file's formatting, please run Prettier to fix the errors
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: rossjrw/pr-preview-action@v1
with:
source-dir: dist/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
Loading