b742a833d1
Add l() wrapper to AdminSimpleWithdrawalController so PS8 routing does not throw UndefinedMethodError; restrict build workflow to branch pushes only so tag pushes no longer trigger a redundant build run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
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
|