-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
260c7c4
commit e35afc5
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |