From a9429819a22986a6c255ed59f5663704a46ae11b Mon Sep 17 00:00:00 2001 From: Maria Fernanda Magallanes Zubillaga Date: Mon, 18 Nov 2024 10:49:08 -0500 Subject: [PATCH] feat: add publish to wordpress svn action --- .github/workflows/publish-svn.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-svn.yml diff --git a/.github/workflows/publish-svn.yml b/.github/workflows/publish-svn.yml new file mode 100644 index 0000000..9b01d25 --- /dev/null +++ b/.github/workflows/publish-svn.yml @@ -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