Skip to content

feat: plan with weekdays e.g "thurs" "wed" etc... #29

feat: plan with weekdays e.g "thurs" "wed" etc...

feat: plan with weekdays e.g "thurs" "wed" etc... #29

Workflow file for this run

name: CD
on:
push:
branches:
- main
jobs:
db-migrate-n-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 7
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run migrations to prod DB
run: pnpm db:migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Install Railway CLI
run: npm i -g @railway/cli
- name: Deploy API
run: railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}