From 6934f5ba757643e1c488d15d414b0331f604bed9 Mon Sep 17 00:00:00 2001 From: Marten Veldthuis Date: Tue, 11 Jun 2024 08:46:49 +0200 Subject: [PATCH] Enable rsync --- .github/workflows/main.yml | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c253dc..c8f3e24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,27 +23,27 @@ jobs: path: output retention-days: 1 - # deploy: - # runs-on: ubuntu-latest - # needs: build - # if: success() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') + deploy: + runs-on: ubuntu-latest + needs: build + if: success() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') - # steps: - # - name: Download Build Artifact - # uses: actions/download-artifact@v4 - # with: - # name: build - # path: output + steps: + - name: Download Build Artifact + uses: actions/download-artifact@v4 + with: + name: build + path: output - # - name: Rsync Deployer - # uses: imajeetyadav/rsync-deployer@1.0.0 - # with: - # HOST: ${{ secrets.SERVER_IP }} - # USERNAME: ${{ secrets.SSH_USER }} - # KEY: ${{ secrets.SSH_PRIVATE_KEY }} - # SOURCE_PATH: "./build/" - # TARGET_PATH: "~/roqua_frontpage/html/" - # PORT: 22 - # RSYNC_PARAMETERS: "" - # DELETE_OPTION: "true" - # EXCLUDE_LIST: ".git, .github" + - name: Rsync Deployer + uses: imajeetyadav/rsync-deployer@1.0.0 + with: + HOST: ${{ secrets.SERVER_IP }} + USERNAME: ${{ secrets.SSH_USER }} + KEY: ${{ secrets.SSH_PRIVATE_KEY }} + SOURCE_PATH: "./build/" + TARGET_PATH: "~/roqua_frontpage/html/" + PORT: 22 + RSYNC_PARAMETERS: "" + DELETE_OPTION: "true" + EXCLUDE_LIST: ".git, .github"