-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 990 Bytes
/
netlify-deploy.yml
File metadata and controls
47 lines (40 loc) · 990 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
38
39
40
41
42
43
44
45
46
47
name: Production → Netlify
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: netlify-production
cancel-in-progress: true
jobs:
call-test:
permissions:
contents: read
uses: ./.github/workflows/test.yml
call-lint:
uses: ./.github/workflows/lint.yml
permissions:
contents: read
deploy:
runs-on: ubuntu-latest
needs: [call-test, call-lint]
environment: netlify
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Setup Node
uses: actions/setup-node@v6.3.0
with:
node-version: "24"
- name: Install and Build
run: |
npm ci --ignore-scripts
npm run build
- name: Deploy to Netlify
run: npx netlify-cli deploy --dir=dist --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}