-
-
Notifications
You must be signed in to change notification settings - Fork 333
38 lines (32 loc) · 948 Bytes
/
docs.yml
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
38
# From https://github.com/marketplace/actions/deploy-to-firebase-hosting
name: Deploy Docs
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'src/**' # for api changes
- 'package.json' # for version changes
- '.github/workflows/docs.yml'
jobs:
deploy_live_website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: corepack enable
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build docs
run: pnpm run docs:build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VUEFIREDOCS }}'
projectId: vuefiredocs
channelId: live