Skip to content

Commit

Permalink
MERL-1136: Deploy WP Plugin - Github Actions (#1549)
Browse files Browse the repository at this point in the history
Updated release-packages workflow to automatically deploy the WP plugin
  • Loading branch information
matthewguywright authored Aug 29, 2023
1 parent fae75bd commit bfdf19b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Save Plugin version
run: |
json=${{ toJSON(steps.changesets.outputs.publishedPackages) }}
echo PLUGIN_VERSION=$(echo "$json" | jq '.[] | select(.name == "@faustwp/wordpress-plugin") | .version') >> $GITHUB_ENV
- name: Deploy WordPress plugin
# Checks the changesets publishedPackages output
# If there is a published package named "@faustwp/wordpress-plugin"
# Then deploy the WordPress plugin
# https://github.com/changesets/action#outputs
if: contains(steps.changesets.outputs.publishedPackages.*.name, '@faustwp/wordpress-plugin')
# Use a variant of 10up/action-wordpress-plugin-deploy that allows us to specify a PLUGIN_DIR
# to support our monorepo structure.
uses: ./.github/actions/release-plugin
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
PLUGIN_DIR: plugins/faustwp
SLUG: faustwp
VERSION: ${{ env.PLUGIN_VERSION }}

1 comment on commit bfdf19b

@headless-platform-by-wp-engine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the recent updates to your Atlas environment:

App Environment URL Build
faustjs canary https://hg…wered.com ✅ (logs)

Learn more about building on Atlas in our documentation.

Please sign in to comment.