From 50543f97d1d89cfda75a349950573999bf7d4fb1 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:20:05 +0200 Subject: [PATCH] andere provider --- .../workflows/{dtchsyn.yml => dtchsyn.bck} | 0 .github/workflows/dtchsyn_v2.yml | 38 +++++++++++++++++++ 2 files changed, 38 insertions(+) rename .github/workflows/{dtchsyn.yml => dtchsyn.bck} (100%) create mode 100644 .github/workflows/dtchsyn_v2.yml diff --git a/.github/workflows/dtchsyn.yml b/.github/workflows/dtchsyn.bck similarity index 100% rename from .github/workflows/dtchsyn.yml rename to .github/workflows/dtchsyn.bck diff --git a/.github/workflows/dtchsyn_v2.yml b/.github/workflows/dtchsyn_v2.yml new file mode 100644 index 0000000..49d096d --- /dev/null +++ b/.github/workflows/dtchsyn_v2.yml @@ -0,0 +1,38 @@ +on: + push: + branches: + - dev + - main + +name: Publish Website +jobs: + web-deploy: + name: Deploy based on branch + runs-on: ubuntu-latest + steps: + - name: Set destination path based on branch + id: set-destination + run: | + if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then + echo "DESTINATION=/Lantaeu/dtch/" >> $GITHUB_ENV + else + echo "DESTINATION=/Lantaeu/dtch_dev/" >> $GITHUB_ENV + fi + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Show upload destination + run: | + echo "Uploading to: $DESTINATION" + + - name: Upload via SFTP + uses: pressidium/lftp-mirror-action@v1 + with: + host: ${{ secrets.SYNADDR }} + port: 22 + user: ${{ secrets.SYNUSR }} + pass: ${{ secrets.SYNPASS }} + localDir: ./ + remoteDir: ${{ env.DESTINATION }} + args: "--exclude-glob *.git --exclude-glob config.php --exclude-glob data/**/*.json"