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

Add option to deploy plugin to WP.org using GitHub Actions #194

Merged
merged 3 commits into from Apr 5, 2019

Conversation

@sudhir-yadav
Copy link
Contributor

@sudhir-yadav sudhir-yadav commented Apr 5, 2019

Use GitHub action to release plugin.

Ref: https://github.com/rtCamp/action-wp-org-plugin-deploy

When you are tagging the release please don't add v along with version_number.

git tag -a 2.0.3 -m "Tagging Version 2.0.3"

@PatelUtkarsh PatelUtkarsh marked this pull request as ready for review Apr 5, 2019
@PatelUtkarsh
Copy link
Contributor

@PatelUtkarsh PatelUtkarsh commented Apr 5, 2019

We will have to use lightweight tags ref: https://github.com/actions/bin/issues/38#issuecomment-467882751

@thrijith
Copy link
Contributor

@thrijith thrijith commented Apr 5, 2019

We will have to use lightweight tags ref: actions/bin#38 (comment)

This is not a problem right now. I have tagged a release with following command and it's working.

git tag -a -s 1.0.9 -m "Tagging Version 1.0.9" for

Plugin ref: https://wordpress.org/plugins/post-contributor/
Tag ref: https://github.com/thrijith/post-contributor/releases/tag/1.0.9

0bbae44a7c254d547e46ace1b2d16b3376b1a1ac refs/remotes/origin/master
47574888e03d9f3f2a8a475e4cf673ab0c6d2087 refs/tags/1.0.9

As you can see the refs are different for tag and master still there was no issue.

Tag Action - https://github.com/thrijith/post-contributor/runs/90012934
Deploy Action - https://github.com/thrijith/post-contributor/runs/90013265

@PatelUtkarsh PatelUtkarsh merged commit 1ead558 into master Apr 5, 2019
2 of 4 checks passed
@PatelUtkarsh PatelUtkarsh deleted the feature/wp-org-gh-action branch Apr 5, 2019
@thrijith thrijith mentioned this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants