Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MERL-1136: Deploy WP Plugin - Github Actions #1549

Merged
merged 20 commits into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading