Skip to content

Commit

Permalink
Create zip with GitHub Actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKay authored Jun 25, 2024
1 parent 9a2d3d8 commit ab6c585
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/create-plugin-zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ZIP Plugin

on:
push:
branches:
- 1.x

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

0 comments on commit ab6c585

Please sign in to comment.