Skip to content

Remove no-build option from workflow #718

Remove no-build option from workflow

Remove no-build option from workflow #718

Workflow file for this run

name: Preview trigger
on:
pull_request:
types: ["opened", "edited", "synchronize"]
pull_request_target:
types: [labeled]
jobs:
pr-preview:
if: |
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'pull_request_target' && github.event.label.name == 'preview')
name: "PR preview"
runs-on: ubuntu-latest
steps:
- name: Checkout questdb.com repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Build site
env:
CONTEXT: deploy-preview
NETLIFY: true
run: yarn build --out-dir build/docs
- name: Deploy to Netlify
id: netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: |
ls -la build
netlify deploy \
--dir=build \
--auth=$NETLIFY_AUTH_TOKEN \
--site=$NETLIFY_SITE_ID \
--alias=preview-${{ github.event.pull_request.number }} \
--message="Preview Deploy from GitHub Actions" \
--json
validate-links:
name: "Validate broken links"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build site for broken link validation
run: |
yarn build