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

GitHub Action to automatically publish releases to wordpress.org Subversion #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mklasen
Copy link

@mklasen mklasen commented Feb 21, 2022

Hey there!

I noticed some discussion on automatically publishing to SVN in #33 (great work btw!) and thought I'd setup a base for this. This is my workflow for the Sympose plugin, found here: https://github.com/conference7/sympose/blob/trunk/.github/workflows/main.yml

SVN username and password will have to be added as secrets to the repository settings. Does need some testing as i'm not sure if and which other changes are necessary.

Configuration file copied from: https://github.com/conference7/sympose/
Action used: https://github.com/10up/action-wordpress-plugin-deploy

How this works:

  • By using this workflow, new versions are automatically committed to SVN when a new release is published

Step by step:

  1. Commit new code to master branch
  2. Go to releases
  3. Create new release based on master branch (create new tag, eg: v.1.2)
  4. After the release is created, an action is launched
  5. When the action is finished, the new release is available in the WordPress repository.

@sun
Copy link
Collaborator

sun commented Feb 21, 2022

Nice! 👍

According to https://github.com/10up/action-wordpress-plugin-deploy#excluding-files-from-deployment we should include a .distignore file in this PR to exclude at minimum /node_modules, possibly more.

Do you know of a command or tool to bump the major/minor/patch version in all the files? (Plugin file header, composer.json, package.json, readme.txt)

@mklasen
Copy link
Author

mklasen commented Feb 22, 2022

Ah - yes. I've copied over some sample content. Happy to cut it down when the plans for auto-syncing to SVN are more serious. I've also included some more (how to) information in my initial PR message.

@sun sun changed the title Base for SVN publishing Automatically publish releases to wordpress.org Subversion May 18, 2022
@sun sun changed the title Automatically publish releases to wordpress.org Subversion GitHub Action to automatically publish releases to wordpress.org Subversion May 18, 2022
@sun
Copy link
Collaborator

sun commented Apr 5, 2024

Unfortunately I think that this is obsolete in the meantime as @dominic-ks already added some GitHub Actions to automate the deployment of releases to wordpress.org. I believe it is using similar actions as proposed here and your contribution might have served as inspiration 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants