-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.01 KB
/
release.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
# Only runs when there"s a new version released (i.e. changes should be versioned really)
on:
push:
tags:
- "v*"
jobs:
build:
name: "Vite build"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm # or pnpm / yarn
- name: Install dependencies
run: npm ci # or pnpm install / yarn install / bun install
- name: Build with Vite
run: npm run build-app
- name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@master
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_MESSAGE: "Prod deploy v${{ github.ref }}"
NETLIFY_DEPLOY_TO_PROD: true
build_directory: dist
build_command: ""
install_command: ""