Files
goose/.github/workflows/pr-website-preview.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 13: cannot unmarshal !!str `preview...` into model.RawConcurrency
Adewale Abati bf760fd630 Docs: Revamp extensions site (#1260)
Co-authored-by: Nahiyan Khan <nahiyan@squareup.com>
2025-03-24 14:56:40 +01:00

45 lines
1.1 KiB
YAML

name: Documentation Site Preview
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
paths:
- 'documentation/**'
concurrency: preview-${{ github.ref }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v3
- name: Setup Node.js
if: github.event.action != 'closed'
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies and build docs
working-directory: ./documentation
if: github.event.action != 'closed'
env:
INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
INKEEP_INTEGRATION_ID: ${{ secrets.INKEEP_INTEGRATION_ID }}
INKEEP_ORG_ID: ${{ secrets.INKEEP_ORG_ID }}
TARGET_PATH: "/goose/pr-preview/pr-${{ github.event.number }}/"
run: |
npm install
npm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
if: ${{ github.event.pull_request.head.repo.full_name == 'block/goose' }}
with:
source-dir: documentation/build