v1.3.3 #36
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: Build plugin zip file | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer | |
- name: Install PHP dependencies | |
run: | | |
composer install --no-dev --optimize-autoloader | |
- name: Create Artifact | |
# Create a zip file similar to 10up/action-wordpress-plugin-deploy action | |
run: | | |
composer run-script zip | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wpgraphql-smart-cache | |
path: plugin-build/wpgraphql-smart-cache.zip | |
- name: Upload release asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: plugin-build/wpgraphql-smart-cache.zip |