-
-
Notifications
You must be signed in to change notification settings - Fork 8
26 lines (23 loc) · 671 Bytes
/
Copy pathdeploy.yml
File metadata and controls
26 lines (23 loc) · 671 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
name: deploy
on:
push:
branches: [main]
permissions:
contents: write
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- run: bun run deploy:preview
- name: Deploy Release
if: github.event_name == 'push' && contains(github.event.head_commit.message, 'release')
run: bun run deploy