From 582691793776e445d1dfa2e6a4fcec1c80fbad90 Mon Sep 17 00:00:00 2001 From: "marcio.voikolesco" Date: Mon, 23 Feb 2026 13:21:17 -0300 Subject: [PATCH] =?UTF-8?q?Adicionar=20workflow=20de=20deploy=20autom?= =?UTF-8?q?=C3=A1tico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/worflows/deploy.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/worflows/deploy.yaml diff --git a/.gitea/worflows/deploy.yaml b/.gitea/worflows/deploy.yaml new file mode 100644 index 0000000..af78900 --- /dev/null +++ b/.gitea/worflows/deploy.yaml @@ -0,0 +1,27 @@ +name: Deploy Automático +on: + push: + branches: [ main ] # Dispara o deploy sempre que houver push na main + workflow_dispatch: + inputs: + commit: + description: 'Commit hash para Rollback (vazio = HEAD da main)' + default: '' + + +jobs: + job_deploy: + runs-on: ubuntu-latest # Deve coincidir com a label no seu config.yaml + steps: + - name: Checkout do código + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Checkout commit específico (se fornecido) + run: | + COMMIT="${{ github.event.inputs.commit }}" + if [ -n "$COMMIT" ]; then + git checkout "$COMMIT" + fi + \ No newline at end of file