Skip to content

fix(sandbox): strip query string from L7 path matching #332

fix(sandbox): strip query string from L7 path matching

fix(sandbox): strip query string from L7 path matching #332

name: Docs PR Preview
on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize, closed]
paths:
- "docs/**"
concurrency:
group: preview-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
packages: read
defaults:
run:
shell: bash
env:
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
preview:
runs-on: build-arm64
container:
image: ghcr.io/nvidia/openshell/ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: mise install
- name: Build documentation
if: github.event.action != 'closed'
run: mise run docs:build:strict
- name: Delete unnecessary files
if: github.event.action != 'closed'
run: |
find _build -name .doctrees -prune -exec rm -rf {} \;
find _build -name .buildinfo -exec rm {} \;
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./_build/docs/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto