Create zip with GitHub Actions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |