feat(sandbox): auto-detect TLS and terminate unconditionally for credential injection #321
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |