This commit is contained in:
parent
25eca59da4
commit
1bb264b977
13
.github/workflows/deploy.yml
vendored
13
.github/workflows/deploy.yml
vendored
@ -1,13 +1,16 @@
|
||||
name: Deploy Automático
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # O la rama que uses
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: host # <--- CAMBIO CLAVE: Usa 'host' o 'self-hosted'
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout código
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run Deploy Script
|
||||
|
||||
- name: Ejecutar Script de Despliegue
|
||||
run: |
|
||||
sudo /usr/bin/bash /opt/deploy.sh
|
||||
Loading…
Reference in New Issue
Block a user