-
Notifications
You must be signed in to change notification settings - Fork 1
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 #76 from dreamsicle-io/release/4.3.0
Release/4.3.0
- Loading branch information
Showing
6 changed files
with
118 additions
and
9 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "wp-theme-assets", | ||
"version": "4.2.3", | ||
"version": "4.3.0", | ||
"description": "WP Theme Assets", | ||
"homepage": "https://github.com/dreamsicle-io/wp-theme-assets", | ||
"license": "GPL-3.0", | ||
|
@@ -12,8 +12,8 @@ | |
"url": "https://github.com/dreamsicle-io/wp-theme-assets/issues" | ||
}, | ||
"author": { | ||
"name": "Dreamsicle", | ||
"email": "[email protected]", | ||
"url": "https://www.dreamsicle.io" | ||
} | ||
"name": "Dreamsicle", | ||
"email": "[email protected]", | ||
"url": "https://www.dreamsicle.io" | ||
} | ||
} |
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,77 @@ | ||
name: Deploy | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
|
||
# Initialize the env variables. These get set after the repo is checked out | ||
# because they depend on files in the repo. | ||
env: | ||
PHP_VERSION: '' | ||
NODE_VERSION: '' | ||
THEME_VERSION: '' | ||
THEME_NAME: '' | ||
WPE_ENV: '' | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it. | ||
- name: Checkout Repo | ||
id: checkout_repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.release.tag_name }} | ||
|
||
# Sets the environment variables from the env.sh script. | ||
- name: Set Environment Variables | ||
id: set_env_vars | ||
run: .github/workflows/scripts/env.sh | ||
|
||
# Setup PHP. | ||
- name: Setup PHP | ||
id: setup_php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.PHP_VERSION }} | ||
|
||
# Setup Node. | ||
- name: Setup Node | ||
id: setup_node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
# Installs npm and composer dependencies. | ||
- name: Install | ||
id: install | ||
run: npm ci | ||
|
||
# Runs a build. | ||
- name: Build | ||
id: build | ||
run: npm run build | ||
|
||
# Extracts the built theme zip file into a .deploy/ directory. | ||
- name: Unzip Theme | ||
id: unzip_theme | ||
run: | | ||
mkdir -p .deploy | ||
unzip ${{ env.THEME_NAME }}.zip -d .deploy/ | ||
# Deploys the contents of .deploy/ to the theme directory on WPEngine. | ||
# More information: https://my.wpengine.com/profile/github_action | ||
# Manage WP Engine SSH keys: https://my.wpengine.com/profile/ssh_keys | ||
- name: Deploy to WPEngine | ||
id: deploy_to_wpengine | ||
uses: wpengine/github-action-wpe-site-deploy@v3 | ||
with: | ||
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} | ||
WPE_ENV: ${{ env.WPE_ENV }} | ||
SRC_PATH: .deploy/ | ||
REMOTE_PATH: wp-content/themes/${{ env.THEME_NAME }}/ | ||
FLAGS: -azvr --inplace --delete |
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
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