From 96e3c717f9d2eba6c9df561eb6e33ad753a8028f Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 13 Mar 2025 14:56:52 +0100 Subject: [PATCH] new action --- .github/workflows/dtchsyn.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dtchsyn.yml diff --git a/.github/workflows/dtchsyn.yml b/.github/workflows/dtchsyn.yml new file mode 100644 index 0000000..877f432 --- /dev/null +++ b/.github/workflows/dtchsyn.yml @@ -0,0 +1,28 @@ +on: + push: + branches: + - dev + - main +name: Publish Website +jobs: + web-deploy: + name: Deploy based on branch + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: SFTP upload + uses: Dylan700/sftp-upload-action@latest + with: + server: sftp.server.com + username: jason-bourne + password: ${{secrets.password}} + port: 22 + uploads: | + ./ => ./www/public_html/ + ignore: | + *.git + */**/*git* + *.json + config.php \ No newline at end of file