Skip to content

Commit

Permalink
chore: fix generate zip Github worflow related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Mar 7, 2023
1 parent 3507b1a commit c27d99a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ jobs:
php-version: 7.4
tools: composer:v2
- 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 release
- name: Push to Stable
env:
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/generate-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
ref:
description: 'Git Commit Ref (branch, tag, or hash)'
required: true
required: false
type: string

jobs:
Expand All @@ -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
4 changes: 0 additions & 4 deletions webpack.config.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ module.exports = {
{ from: 'includes/**/*', to: './' },
{ from: 'lang/**/*', to: './' },
{ from: 'templates/**/*', to: './' },
{
from: 'vendor/georgestephanis/application-passwords/**/*',
to: './',
},
{
from: 'vendor/yahnis-elsts/plugin-update-checker/**/*',
to: './',
Expand Down

0 comments on commit c27d99a

Please sign in to comment.