Skip to content

Commit ab6c585

Browse files
authored
Create zip with GitHub Actions (#5)
1 parent 9a2d3d8 commit ab6c585

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ZIP Plugin
2+
3+
on:
4+
push:
5+
branches:
6+
- 1.x
7+
8+
jobs:
9+
create-plugin-zip:
10+
name: Create ZIP
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 8.2
20+
21+
- name: Build for production
22+
run: composer build:prod
23+
24+
- name: Upload ZIP artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: wordpress-plugin-template
28+
path: |
29+
classes
30+
inc
31+
src
32+
vendor
33+
wordpress-plugin-template.php

0 commit comments

Comments
 (0)