forked from SharzyL/pastebin-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 816 Bytes
/
deploy.yml
File metadata and controls
41 lines (34 loc) · 816 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
name: Test and Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install Node"
uses: actions/setup-node@v4
with:
node-version: "22"
- name: "Install pnpm"
uses: pnpm/action-setup@v4
with:
version: 10
- name: "Setup"
run: pnpm install
- name: "Build Frontend"
run: pnpm build:frontend
- name: "Test"
run: |
pnpm fmt
pnpm lint
pnpm test --testTimeout 15000
- name: "Deploy"
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
run: |
pnpm wrangler deploy