This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user