From 405f0303642f03e455f787929f0d3812b104a517 Mon Sep 17 00:00:00 2001 From: Stefan Wendhausen Date: Tue, 6 Aug 2024 20:27:39 +0200 Subject: [PATCH] Create dtfbprod.yml --- .github/workflows/dtfbprod.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/dtfbprod.yml diff --git a/.github/workflows/dtfbprod.yml b/.github/workflows/dtfbprod.yml new file mode 100644 index 0000000..9c23785 --- /dev/null +++ b/.github/workflows/dtfbprod.yml @@ -0,0 +1,23 @@ +name: Deploy production branch to dtfb.de +on: + push: + branches: ['production'] + paths: ['src/structure/**'] + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: rsync deployments + uses: burnett01/rsync-deployments@7.0.1 + with: + switches: -avzr + path: src/structure/ + remote_path: ${{ secrets.DTFB_PROD_PATH }} + remote_host: ${{ secrets.DTFB_PROD_HOST }} + remote_port: ${{ secrets.DTFB_PROD_PORT }} + remote_user: ${{ secrets.DTFB_PROD_USER }} + remote_key: ${{ secrets.DTFB_PROD_KEY }} +