-
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.
Merge pull request #1014 from 10up/fix/translate-js-files-947
Tweak: create pot file with WP CLI and move translations to JS files
- Loading branch information
Showing
20 changed files
with
679 additions
and
260 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,22 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Set PHP version | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: 7.4 | ||
tools: composer:v2 | ||
- name: Check versions | ||
run: npm -v; node -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: | ||
|
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Generate ZIP | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Git Commit Ref (branch, tag, or hash)' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
generate_zip: | ||
name: New ZIP file | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- name: Use desired version of NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Set PHP version | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: 7.4 | ||
tools: composer:v2, wp | ||
- name: Check versions | ||
run: | | ||
npm -v | ||
node -v | ||
php -v | ||
composer -v | ||
- name: Install and build | ||
run: | | ||
composer install --no-dev | ||
npm install | ||
npm run release | ||
npm run plugin-zip | ||
rm -rf ./release && unzip ${{ github.event.repository.name }}.zip -d ./release | ||
- name: Upload the ZIP file as an artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
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
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
Oops, something went wrong.