-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix generate zip Github worflow related issues
- Loading branch information
Showing
3 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
inputs: | ||
ref: | ||
description: 'Git Commit Ref (branch, tag, or hash)' | ||
required: true | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
@@ -25,21 +25,24 @@ jobs: | |
uses: shivammathur/[email protected] | ||
with: | ||
php-version: 7.4 | ||
tools: composer:v2 | ||
tools: composer:v2, wp | ||
- name: Check versions | ||
run: npm -v; node -v, php -v, composer -v | ||
run: | | ||
npm -v | ||
node -v | ||
php -v | ||
composer -v | ||
- name: Install and build | ||
run: | | ||
composer install --no-dev | ||
npm install | ||
npm run makepot | ||
npm run plugin-zip | ||
npm run release | ||
rm -rf ./release && unzip ${{ github.event.repository.name }}.zip -d ./release | ||
- name: Upload the ZIP file as an artifact | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.plugin_slug }} | ||
path: ${{ inputs.plugin_slug }} | ||
name: ${{ github.event.repository.name }} | ||
path: release | ||
retention-days: 5 |
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