Skip to content
Open
Show file tree
Hide file tree
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
21 changes: 0 additions & 21 deletions .github/workflows/assets-update.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/wordpress-org-plugin-page.yml
Original file line number Diff line number Diff line change
@@ -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: switch to @main once inpsyde/reusable-workflows#296 is merged
uses: inpsyde/reusable-workflows/.github/workflows/wordpress-org-plugin-page.yml@5f6631624f456519cad02088afabcec7bb45ea4d
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 }}
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ If you run into bugs or want to suggest an improvement:
We follow the WordPress Community Code of Conduct.
Be respectful and inclusive in all your interactions.

## 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! ❤️
Expand Down
Loading