-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 840 Bytes
/
cd_dev.yml
File metadata and controls
35 lines (29 loc) · 840 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
name: CD Dev
concurrency:
group: dev
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [main]
jobs:
lint_build_deploy:
name: Lint and build code, then publish to Netlify
environment:
name: dev
url: https://hd-2023-dev.netlify.app/
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Lint and build code, then publish to Netlify
run: netlify deploy --build --prod
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}