Skip to content

Add cd for docs repo #2

Add cd for docs repo

Add cd for docs repo #2

Workflow file for this run

name: Deploy
on:
pull_request:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
environment: deploy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Deploy to docs.serverpod.dev
env:
USE_SSH: true
run: |
git config --global user.email "[email protected]"
git config --global user.name "serverpod_docs"
npm ci
npm run deploy