name: Deploy Eplan on: push: tags: - 'v*' branches: - main jobs: deploy: runs-on: docker if: startsWith(github.ref, 'refs/tags/v') || contains(github.event.head_commit.message, '[deploy]') steps: - name: Notify Start uses: data/ntfy-action@main with: url: https://notify.data-it-solution.de topic: vk-builds auth: ${{ secrets.NTFY_AUTH }} project: Eplan status: start - name: Checkout run: | git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ "https://token:${{ secrets.GIT_TOKEN }}@git.data-it-solution.de/${GITHUB_REPOSITORY}.git" . - name: Deploy nach Prod run: | ZIEL="/mnt/appdata/firma/dolibarr-202509/modules/eplan" mkdir -p "$ZIEL"/{core/modules,admin,langs/de_DE,langs/en_US,lib} cp core/modules/modEplan.class.php "$ZIEL/core/modules/" cp admin/setup.php "$ZIEL/admin/" cp lib/eplan.lib.php "$ZIEL/lib/" cp langs/de_DE/eplan.lang "$ZIEL/langs/de_DE/" cp langs/en_US/eplan.lang "$ZIEL/langs/en_US/" echo "Deployt nach $ZIEL" ls -la "$ZIEL/core/modules/" - name: Notify Success if: success() uses: data/ntfy-action@main with: url: https://notify.data-it-solution.de topic: vk-builds auth: ${{ secrets.NTFY_AUTH }} project: Eplan status: success - name: Notify Failure if: failure() uses: data/ntfy-action@main with: url: https://notify.data-it-solution.de topic: vk-builds auth: ${{ secrets.NTFY_AUTH }} project: Eplan status: failure