diff --git a/.github/workflows/assets-update.yml b/.github/workflows/assets-update.yml deleted file mode 100644 index 24a1711..0000000 --- a/.github/workflows/assets-update.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Plugin asset/readme update -permissions: - contents: read - pull-requests: write -on: - push: - branches: - - main -jobs: - trunk: - name: Push to trunk - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: WordPress.org plugin asset/readme update - uses: 10up/action-wordpress-plugin-asset-update@stable - env: - SLUG: multisyde - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - IGNORE_OTHER_FILES: true \ No newline at end of file diff --git a/.github/workflows/wordpress-org-plugin-page.yml b/.github/workflows/wordpress-org-plugin-page.yml new file mode 100644 index 0000000..2898955 --- /dev/null +++ b/.github/workflows/wordpress-org-plugin-page.yml @@ -0,0 +1,27 @@ +name: WordPress.org plugin page +on: + workflow_dispatch: + inputs: + SYNC_README: { type: boolean, default: true, description: 'Sync readme.txt to stable tag and trunk' } + SYNC_ASSETS: { type: boolean, default: true, description: 'Mirror .wordpress-org/ to SVN /assets' } + DRY_RUN: { type: boolean, default: true, description: 'Preview only, commit nothing' } +permissions: + contents: read +concurrency: + group: wordpress-org-svn + cancel-in-progress: false +jobs: + sync: + # Publish only what is merged; a feature branch must not reach the WordPress.org page. + if: github.ref == 'refs/heads/dev/main' + # TODO: re-pin to main once inpsyde/reusable-workflows#296 is merged (pinned to its head for now) + uses: inpsyde/reusable-workflows/.github/workflows/wordpress-org-plugin-page.yml@173fdd99f853345260904cba54400146cd88fbac # PR #296 head as of 2026-10-30 + with: + SVN_PLUGIN_SLUG: multisyde + GIT_REF: ${{ github.sha }} # the dispatched ref; never free text + SYNC_README: ${{ inputs.SYNC_README }} + SYNC_ASSETS: ${{ inputs.SYNC_ASSETS }} + DRY_RUN: ${{ inputs.DRY_RUN }} + secrets: + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2e8b0e0..bb1c4ee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -132,6 +132,15 @@ Releases are built and published by the **Release** workflow. Nothing is publish A failing Plugin Check on the built package stops the release before anything is tagged. `VERSION` must be `MAJOR.MINOR.PATCH`. Every run, including a dry run, tags the built `main` with `VERSION`. A later run reuses that tag only while `dev/main` is unchanged; otherwise delete the tag first. +## WordPress.org plugin page + +The readme and the assets in `.wordpress-org/` are not published automatically. To update them between releases: +1. Merge the change to `dev/main`. +2. Run the **WordPress.org plugin page** workflow from `dev/main` with `DRY_RUN` on (the default), and review the SVN changes and the readme diff in the run summary. +3. Run it again with `DRY_RUN` off to publish. + +`SYNC_README` and `SYNC_ASSETS` select what gets synced. The readme goes to the `Stable tag` and to trunk, and `.wordpress-org/` is mirrored to SVN `/assets`, so files removed from Git are removed from WordPress.org too. + --- Thanks for helping improve MultiSyde! ❤️