-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 821 Bytes
/
deploy.yml
File metadata and controls
36 lines (28 loc) · 821 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
name: Deploy demo
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
netlify:
name: Build and deploy to Netlify
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build demo
run: bun run build
- name: Deploy to Netlify (production)
run: bunx netlify-cli@latest deploy --dir=dist-demo --prod --message "Deploy ${GITHUB_SHA::7}"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}