Skip to content

Commit

Permalink
ci: add deploy step for documentation to GH pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
SandPod committed Jan 19, 2024
1 parent 041b858 commit 324c390
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy
on:
push:
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

0 comments on commit 324c390

Please sign in to comment.