-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.47 KB
/
netlify.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
name: Build and Deploy to Netlify
on:
push:
branches:
- main
- d/**
pull_request:
jobs:
build-stg:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: yarn
- name: Lint
run: yarn lint
- name: Build voting page stg
run: yarn build
env:
VOCDONI_ENVIRONMENT: stg
PROCESS_IDS: '["4ae20a8eb4ca8bd340fc16a71ae591b88418c42e799705b98073020000000021"]'
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './dist'
# keep as a non existant branch, because we don't want to publish this
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Vocdoni DEV Deploy from GitHub Actions'
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: eba70567-ca33-4504-9603-0ddc8c4437c6
timeout-minutes: 1