-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (31 loc) · 937 Bytes
/
release_docs.yaml
File metadata and controls
36 lines (31 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release PSQLPy documentation
on: workflow_dispatch
permissions:
contents: write
jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install deps
run: pnpm install
- name: Build
run: pnpm docs:build -d docs_dist
- name: Setup git
run: |
git config --global lfs.allowincompletepush true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: psqlpy-python/psqlpy-python.github.io
publish_dir: ./docs_dist
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"