Skip to content

Commit

Permalink
ci: 👷 deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
agomezjuan committed Mar 24, 2024
1 parent 260c7c4 commit e35afc5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Backend
on:
pull_request:
types: [closed]
push:
branches:
- main

jobs:
deploy-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Configuramos Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'

# Instalamos las dependencias
- name: Install Dependencies
run: go mod tidy

# Pasos para el deploy en Railway
- name: Install Railway
run: bash <(curl -fsSL cli.new)

- name: Deploy
run: railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

0 comments on commit e35afc5

Please sign in to comment.