From 685331a5d92ea4ee8668c076b332b81a26a4ed78 Mon Sep 17 00:00:00 2001 From: Arne Weiss Date: Mon, 1 Jun 2026 07:36:08 +0200 Subject: [PATCH] Add Gitea Actions build pipeline --- .gitea/workflows/build.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..ddc1836 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + container: + image: php:8.2-cli-alpine + + steps: + - uses: actions/checkout@v4 + + - name: Install zip + run: apk add --no-cache zip + + - name: PHP syntax check + run: | + find . -name "*.php" -not -path "./.git/*" -print0 \ + | xargs -0 -n1 php -l + + - name: Build ZIP + run: | + MODULE=simple_withdrawalbutton + mkdir -p dist/$MODULE + cp -rp . dist/$MODULE + rm -rf dist/$MODULE/.git \ + dist/$MODULE/.gitea \ + dist/$MODULE/dist \ + dist/$MODULE/CLAUDE.md + cd dist + zip -r ${MODULE}.zip $MODULE/ + echo "Built dist/${MODULE}.zip" + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: simple_withdrawalbutton + path: dist/simple_withdrawalbutton.zip + if-no-files-found: error