From d4ca82923e46310bc56766a78f389e04e66fb682 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:15:13 +0200 Subject: [PATCH 1/5] dry-run: true --- .github/workflows/dtchsyn.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dtchsyn.yml b/.github/workflows/dtchsyn.yml index d3daa0e..7a3443a 100644 --- a/.github/workflows/dtchsyn.yml +++ b/.github/workflows/dtchsyn.yml @@ -25,7 +25,7 @@ jobs: - name: SFTP upload uses: Dylan700/sftp-upload-action@latest with: - dry-run: true + dry-run: false server: ${{secrets.SYNADDR}} username: ${{secrets.SYNUSR}} password: ${{secrets.SYNPASS}} From d9c78f148874b11683fa3f3a36f5eb736db998a9 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:17:19 +0200 Subject: [PATCH 2/5] debug: true --- .github/workflows/dtchsyn.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dtchsyn.yml b/.github/workflows/dtchsyn.yml index 7a3443a..cb9baee 100644 --- a/.github/workflows/dtchsyn.yml +++ b/.github/workflows/dtchsyn.yml @@ -25,6 +25,7 @@ jobs: - name: SFTP upload uses: Dylan700/sftp-upload-action@latest with: + debug: true dry-run: false server: ${{secrets.SYNADDR}} username: ${{secrets.SYNUSR}} From 50543f97d1d89cfda75a349950573999bf7d4fb1 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:20:05 +0200 Subject: [PATCH 3/5] 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" From 50d8a89cb81488b0e86750231d4b4b38fbdc12fb Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:25:55 +0200 Subject: [PATCH 4/5] fix --- .github/workflows/{dtchsyn.bck => dtchsyn.yaml} | 4 ++-- .github/workflows/{dtchsyn_v2.yml => dtchsyn_v2.bck} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{dtchsyn.bck => dtchsyn.yaml} (86%) rename .github/workflows/{dtchsyn_v2.yml => dtchsyn_v2.bck} (100%) diff --git a/.github/workflows/dtchsyn.bck b/.github/workflows/dtchsyn.yaml similarity index 86% rename from .github/workflows/dtchsyn.bck rename to .github/workflows/dtchsyn.yaml index cb9baee..a3a654f 100644 --- a/.github/workflows/dtchsyn.bck +++ b/.github/workflows/dtchsyn.yaml @@ -14,9 +14,9 @@ jobs: id: set-destination run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then - echo "DESTINATION=/Lantaeu/dtch/" >> $GITHUB_ENV + echo "DESTINATION=/LantaeuSSD/dtch/" >> $GITHUB_ENV else - echo "DESTINATION=/Lantaeu/dtch_dev/" >> $GITHUB_ENV + echo "DESTINATION=/LantaeuSSD/dtch_dev/" >> $GITHUB_ENV fi - name: Checkout diff --git a/.github/workflows/dtchsyn_v2.yml b/.github/workflows/dtchsyn_v2.bck similarity index 100% rename from .github/workflows/dtchsyn_v2.yml rename to .github/workflows/dtchsyn_v2.bck From b6a4b3f4e2bac05a709a821266040135fed991e1 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:28:18 +0200 Subject: [PATCH 5/5] fixes --- .github/workflows/dtchsyn.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dtchsyn.yaml b/.github/workflows/dtchsyn.yaml index a3a654f..356fe61 100644 --- a/.github/workflows/dtchsyn.yaml +++ b/.github/workflows/dtchsyn.yaml @@ -25,7 +25,6 @@ jobs: - name: SFTP upload uses: Dylan700/sftp-upload-action@latest with: - debug: true dry-run: false server: ${{secrets.SYNADDR}} username: ${{secrets.SYNUSR}}