-
Notifications
You must be signed in to change notification settings - Fork 782
47 lines (40 loc) · 1.26 KB
/
deploy.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
41
42
43
44
45
46
47
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: Clone Rin repository
uses: actions/checkout@v4
with:
path: Rin
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Deploy
env: # Or as an environment variable
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
DB_NAME: ${{ vars.DB_NAME }}
WORKER_NAME: ${{ vars.WORKER_NAME }}
FRONTEND_URL: ${{ vars.FRONTEND_URL }}
S3_ACCESS_HOST: ${{ vars.S3_ACCESS_HOST }}
S3_BUCKET: ${{ vars.S3_BUCKET }}
S3_CACHE_FOLDER: ${{ vars.S3_CACHE_FOLDER }}
S3_ENDPOINT: ${{ vars.S3_ENDPOINT }}
S3_FOLDER: ${{ vars.S3_FOLDER }}
S3_REGION: ${{ vars.S3_REGION }}
run: |
cd Rin/
bun i
bun scripts/migrator.ts