From 7565cf57f114b7c33187cf27b47128a37d477ccf Mon Sep 17 00:00:00 2001 From: Alexander Lyall Date: Sat, 8 Nov 2025 18:09:45 +0000 Subject: [PATCH] Update .gitea/publish.yml --- .gitea/publish.yml | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/.gitea/publish.yml b/.gitea/publish.yml index c39b5ee..779a12e 100644 --- a/.gitea/publish.yml +++ b/.gitea/publish.yml @@ -1,15 +1,28 @@ -- name: Checkout - uses: actions/checkout@v4 -- name: SFTP upload - uses: Dylan700/sftp-upload-action@latest - with: - server: sagittarius.premium.hostns.io - username: adcmnetworks - key: ${{secrets.key}} - port: 22 - uploads: | - ./export => /home/adcmnetworks/csbox - delete: 'true' - ignore: | - *.git - */**/*git* \ No newline at end of file +name: Publish + +on: + workflow_dispatch: + push: + branches: [main] + paths: + - ./export + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: SFTP upload + uses: Dylan700/sftp-upload-action@latest + with: + server: sagittarius.premium.hostns.io + username: adcmnetworks + key: ${{secrets.key}} + port: 22 + uploads: | + ./export => /home/adcmnetworks/csbox + delete: 'true' + ignore: | + *.git + */**/*git* \ No newline at end of file