-
Notifications
You must be signed in to change notification settings - Fork 679
54 lines (47 loc) · 1.64 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
48
49
50
51
52
53
54
name: Deploy
on:
push:
branches:
- dev
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- 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 }}
RIN_GITHUB_CLIENT_ID: ${{ secrets.RIN_GITHUB_CLIENT_ID }}
RIN_GITHUB_CLIENT_SECRET: ${{ secrets.RIN_GITHUB_CLIENT_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 }}
S3_FORCE_PATH_STYLE: ${{ vars.S3_FORCE_PATH_STYLE }}
WEBHOOK_URL: ${{ vars.WEBHOOK_URL }}
RSS_TITLE: ${{ vars.RSS_TITLE }}
RSS_DESCRIPTION: ${{ vars.RSS_DESCRIPTION }}
run: |
cd Rin/
bun install --frozen-lockfile
bun scripts/migrator.ts