-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add publish to wordpress svn action
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish to WordPress SVN | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Commit message' | ||
default: 'Release x' | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v3 | ||
with: | ||
composer-options: "--no-dev" | ||
|
||
- name: Prepare the openedx-commerce directory for the release | ||
run: | | ||
make release | ||
- name: WordPress Plugin Deploy | ||
id: deploy | ||
uses: richard-muvirimi/deploy-wordpress-plugin@development | ||
with: | ||
plugin-repository: https://plugins.svn.wordpress.org/openedx-commerce/ | ||
svn-username: ${{ secrets.WORDPRESS_SVN_USERNAME }} | ||
svn-password: ${{ secrets.WORDPRESS_SVN_PASSWORD }} | ||
commit-message: ${{ inputs.message }} | ||
assets-directory: ../docs/source/_images/plugin-page | ||
working-directory: openedx-commerce |