Skip to content

fix: #262 (#263)

fix: #262 (#263) #298

Workflow file for this run

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