Skip to content

Create zip with GitHub Actions #1

Create zip with GitHub Actions

Create zip with GitHub Actions #1

name: ZIP Plugin
# on:
# push:
# branches:
# - 1.x
on: [pull_request]
jobs:
create-plugin-zip:
name: Create ZIP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Build for production
run: composer build:prod
- name: Upload ZIP artifact
uses: actions/upload-artifact@v4
with:
name: wordpress-plugin-template
path: |
classes
inc
src
vendor
wordpress-plugin-template.php