Skip to content

chore: test pr preview_prs #9

chore: test pr preview_prs

chore: test pr preview_prs #9

Workflow file for this run

name: Deploy didroom docs preview
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
permissions:
contents: read
pages: write
id-token: write
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci # or pnpm install / yarn install / bun install
- run: |
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo snap install ttyd --classic
sudo apt update && sudo apt install vhs ffmpeg
- run: make
working-directory: ./docs/installation_instructions
- name: Build with VitePress
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: docs/.vitepress/dist