Files
simple-withdrawalbutton/.gitea/workflows/build.yml
T
Arne Weiss b3547946cc
Build / build (push) Successful in 13s
Add release.sh for patch version bumping
2026-06-01 08:17:18 +02:00

43 lines
1.1 KiB
YAML

name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: php:8.2-cli-alpine
steps:
- name: Install Node.js, git and zip
run: apk add --no-cache nodejs git zip
- uses: actions/checkout@v4
- name: PHP syntax check
run: |
find . -name "*.php" -not -path "./.git/*" -print0 \
| xargs -0 -n1 php -l
- name: Build ZIP
run: |
MODULE=simple_withdrawalbutton
cp -rp . /tmp/$MODULE
rm -rf /tmp/$MODULE/.git \
/tmp/$MODULE/.gitea \
/tmp/$MODULE/CLAUDE.md \
/tmp/$MODULE/release.sh
cd /tmp && zip -r ${MODULE}.zip $MODULE/
mkdir -p $GITHUB_WORKSPACE/dist
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
echo "Built dist/${MODULE}.zip"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: simple_withdrawalbutton
path: dist/simple_withdrawalbutton.zip
if-no-files-found: error