Skip to content

ci: add automatic documentation deploys. #12

ci: add automatic documentation deploys.

ci: add automatic documentation deploys. #12

Workflow file for this run

name: Docusaurus deploy
on:
pull_request:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
environment: deploy
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- uses: actions/checkout@v4
with:
path: src
- name: Build docs
run: |
cd src
npm ci
npm run build
# - uses: actions/checkout@v4
# with:
# path: target
# ref: test_deploy_branch
# repository: serverpod/serverpod.github.io
# ssh-key: ${{ secrets.GH_PAGES_DEPLOY }}
# - name: Deploy to target
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "serverpod_docs"
# cp -r build/* ../target/docs
# cd ../target/docs
# git add .
# git commit -m "Deployed by Serverpod docs deploy action"
# git push