From f68907fddca89d56e442de922d13a14b508aad4a Mon Sep 17 00:00:00 2001 From: Marconi Gomes Date: Thu, 30 May 2024 12:52:57 +0000 Subject: [PATCH] Implementa CD com VM --- .github/workflows/deploy-manual.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy-manual.yaml diff --git a/.github/workflows/deploy-manual.yaml b/.github/workflows/deploy-manual.yaml new file mode 100644 index 0000000..456496a --- /dev/null +++ b/.github/workflows/deploy-manual.yaml @@ -0,0 +1,25 @@ +name: Deploy manual +on: + push: + branches: + ["master", "feat/ci-cd"] + workflow_dispatch: +permissions: + contents: read + +jobs: + deploy: + runs-on: + - self-hosted + - linux + - x64 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + path: './manual' + - name: Copy changes + shell: bash + run: | + rm -rf ${{ secrets.VM_MANUAL_PATH }}/* + cp -r ./manual/* ${{ secrets.VM_MANUAL_PATH }} \ No newline at end of file