-
-
Notifications
You must be signed in to change notification settings - Fork 823
42 lines (32 loc) · 1.21 KB
/
netlify.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
39
40
41
42
name: 📄 (PROD) Desplegando documentacion
on:
push:
branches:
- release/next
jobs:
############ DOCUMENTATION BUILD ############
build-documentation-prod:
name: Build Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/[email protected]
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- run: corepack enable
- name: Install NPM Dependencies
run: pnpm install --frozen-lockfile
- name: Add netlify
run: pnpm install netlify-cli -w
- name: Create .env build file
run: |
touch packages/docs/.env
echo VITE_GITHUB_TOKEN=${{ secrets.COLLABORATORS_TOKEN }} >> packages/docs/.env
- name: Build and Deploy
run: |
cd packages/docs && npm run build && netlify deploy --prod --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}