Skip to content

Commit

Permalink
Merge branch 'main' into network-capture-global
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol authored Aug 21, 2024
2 parents e8914d9 + d714c3a commit 3ffa063
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy to Dev

on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- closed
paths-ignore:
- '.github/**'
- '.docsearch/**'
- 'README.md'
- '.gitpod.yml'
workflow_dispatch:

env:
ALGOLIA_APP_ID: ${{secrets.ALGOLIA_APP_ID}}
ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}}
NO_INDEX: true

concurrency: preview-${{ github.ref }}

jobs:
deploy-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 18.x
- uses: actions/cache@v2
id: cache-build
with:
path: |
build
key: ${{ runner.os }}-${{ github.sha }}
- name: Install Dependencies
if: steps.cache-build.outputs.cache-hit != 'true' && github.event.action != 'closed' # Skip if the PR was closed
run: |
npm install
- name: Run Build
if: steps.cache-build.outputs.cache-hit != 'true' && github.event.action != 'closed' # Skip if the PR was closed
run: |
npm run build
- name: Deploy PR preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/

0 comments on commit 3ffa063

Please sign in to comment.