refactor: tweak feed algorithm #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jonogon Core to Railway | |
on: | |
push: | |
branches: | |
- production | |
paths: | |
- apps/jonogon-core/**/* | |
- .github/workflows/core-to-railway.yml | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node 22 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install packages | |
run: pnpm install | |
- name: Install Railway | |
run: npm install -g @railway/cli | |
- name: Run Database Migrations | |
working-directory: ./misc/migrator | |
run: pnpm run migration up | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_PUBLIC_URL }} | |
- name: Deploy | |
working-directory: ./apps/jonogon-core/ | |
run: | | |
railway up --service jonogon-core > deploy.log 2>&1 || (echo "Deployment failed. Check the logs for details:" && cat deploy.log) | |
env: | |
RAILWAY_TOKEN: ${{ secrets.RAILWAY_DEPLOY_TOKEN }} |