Skip to content

Commit

Permalink
ci: add vars in deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
OXeu committed Jun 6, 2024
1 parent fb3f2ee commit 57ff8cb
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
name: Deploy

on:
push:
branches:
- main
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
deploy:
runs-on: ubuntu-latest

steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21

- name: Clone Rin repository
uses: actions/checkout@v2
with:
path: Rin
- name: Clone Rin repository
uses: actions/checkout@v4
with:
path: Rin

- name: Set up Bun
uses: oven-sh/setup-bun@v1
- 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 }}
run: |
cd Rin/
bun i
bun server/migrator.ts
- name: Deploy
env: # Or as an environment variable
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
DB_NAME: ${{ vars.DB_NAME }}
WORKER_NAME: ${{ vars.WORKER_NAME }}
FRONTEND_URL: ${{ vars.FRONTEND_URL }}
S3_FOLDER: ${{ vars.S3_FOLDER }}
run: |
cd Rin/
bun i
bun server/migrator.ts

0 comments on commit 57ff8cb

Please sign in to comment.