# Set the following secrets in your repo's pipeline settings: # RAILWAY_TOKEN # RAILWAY_SERVICE_ID when: - event: ["push"] branch: ["main"] engine: "nixery" dependencies: nixpkgs: - rustup - gcc steps: - name: Install Rust toolchain command: rustup default stable - name: Install Railway CLI command: cargo install railwayapp --locked - name: Link `railway` executable command: ln -s /tangled/home/.cargo/bin/railway /bin/railway - name: Deploy to Railway command: railway up --ci --service=$RAILWAY_SERVICE_ID