From 7e661c4a580ff982f78c38023c565eb67dbae16b Mon Sep 17 00:00:00 2001 From: ProgrammGamer Date: Fri, 30 Jan 2026 17:31:00 +0100 Subject: [PATCH] add deployment --- .gitea/workflows/deploy.yml | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..95081c1 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,49 @@ +name: Deploy Workshop-Wahlen (DEV / PROD) + +on: + push: + branches: + - develop + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + # DEV + - name: Deploy to DEV + if: github.ref == 'refs/heads/develop' + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.SFTP_HOST }} + port: ${{ secrets.SFTP_PORT }} + username: ${{ secrets.SFTP_USER }} + password: ${{ secrets.SFTP_PASS }} + source: | + assets + includes + *.php + README.md + target: "/dev.konfi-castle.com/wp-content/plugins/konficastle-workshopwahl/" + rm: true + + # PROD + - name: Deploy to PROD + if: github.ref == 'refs/heads/main' + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.SFTP_HOST }} + port: ${{ secrets.SFTP_PORT }} + username: ${{ secrets.SFTP_USER }} + password: ${{ secrets.SFTP_PASS }} + source: | + assets + includes + *.php + README.md + target: "/httpdocs/wp-content/plugins/konficastle-workshopwahl/" + rm: true