DEV Community

Bervianto Leo Pratama
Bervianto Leo Pratama

Posted on

Un-official Github Action for Deployment to Railway

My Workflow

Submission Category:

DIY Deployments

Yaml File or Link to Code

GitHub logo bervProject / railway-deploy

Github Action to Deploy App to Railway using Railway CLI

Railway Deploy Github Action

This action deploys your app to Railway using Railway CLI.

Inputs

Name Required Description
service true Specify the service to use. Introduced from 0.1.0.
railway_token false Railway Token to deploy the app.
detach false Allow detaching (not waiting) the deployment process from the pipeline. Introduced from 0.1.2.

Outputs

status

Success/Failure result

Example usage

Using with

uses: bervProject/railway-deploy@main
with:
  railway_token: ${{ secrets.RAILWAY_TOKEN }}
  service: "my-service"
Enter fullscreen mode Exit fullscreen mode

Using env

uses: bervProject/railway-deploy@main
env:
  RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
with:
  service: "my-service"
Enter fullscreen mode Exit fullscreen mode

Detach Mode

uses: bervProject/railway-deploy@main
with:
  railway_token: ${{ secrets.RAILWAY_TOKEN }}
  service: "my-service"
  detach: true
Enter fullscreen mode Exit fullscreen mode

Notes for Raising Bugs/Issues

  1. Please create an issue or discussion with general or detailed questions/issues (never expose confidential things).
  2. If you want to share some private/confidential logs, you may send those to my email. Please…

Additional Resources / Info

Example project that implement the bervproject/railway-deploy:

GitHub logo bervProject / MyPersonalWebAPI

Personal Web API using FeathersJS

MyPersonalWebAPI

Web API for Bervianto's Web

Build Status

Codacy Travis
Codacy Badge Build Status

Notes (Requirement for Development or Production)

  • Using Dockerfile or Docker Compose

Please rename .env.example into .env and update secret keys

  • Using Heroku

Update environment or config, using secret and production as keys and insert your value.

About

This project uses Feathers. An open source web framework for building modern real-time applications.

Changelog

Changelog here

License

Copyright (c) 2018

Licensed under the MIT license.




Top comments (0)