diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 8b829f9021e..2812492b985 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,9 +1,19 @@ -name: Test Build +name: Deploy PR previews on: pull_request +concurrency: preview-${{ github.ref }} jobs: - build: - runs-on: ubuntu-latest + deploy-preview: + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - run: npm ci - - run: npm run build + - name: Checkout + uses: actions/checkout@v3 + + - name: Install and Build + run: | + npm install + npm run build + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./public/