Skip to content

Add mongoDB database #1

Add mongoDB database

Add mongoDB database #1

Workflow file for this run

name: Deploy to Railway
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Railway
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
# Install Rust
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
# Build the Rust project
- name: Build Project
run: cargo build --release
# Deploy to Railway
- name: Deploy to Railway
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
run: |
curl -fsSL https://railway.app/install | sh
railway login --token "$RAILWAY_TOKEN"
railway up --yes