Add Gitea Actions build pipeline
Build / build (push) Failing after 35s

This commit is contained in:
Arne Weiss
2026-06-01 07:36:08 +02:00
parent 317d92b9d0
commit 685331a5d9
+42
View File
@@ -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