-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 949 Bytes
/
docs.yml
File metadata and controls
37 lines (35 loc) · 949 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
37
name: Documentation
on:
push:
branches:
- main
paths:
- 'packages/docs/**'
pull_request:
paths:
- 'packages/docs/**'
jobs:
deploy:
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build documentation
run: pnpm run --filter @lagoss/docs build
- uses: lagossapp/github-action@latest
with:
token: ${{ secrets.LAGOSS_TOKEN }}
app_id_or_name: docs
prod: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: Log deployment URL
run: |
url=$(grep -o 'https://[^[:space:]]*' lagoss.output)
echo "Deployment available at: $url"