To release the new version, please do as follows:
$ git tag 1.1.0
$ git push origin 1.1.0
1.1.0
is a version number, it has to be same with version number in your WordPress plugin.- You have to commit
vendor
directory in your plugin.
- Please visit "releases" in your GitHub repository.
- Choose a tag.
- Fill out the release note and title.
- Upload your plugin which is comporessed with zip. (Optional)
- Press "Publish release".
You can upload the package automat GitHub Actions.
As for now, GitHub Actions service is in beta, so you have to sign up the Beta here
When the service is ready you will find the Actions tab on the top page of your repository, then follow the steps below:
- Then, copy the .github directory on the below url to the root directory of your local repository. getshifter/shifter-github-hosting-plugin-sample
- It must be look like: /path_to_your_repository/.github/workflows/release.yml
- Open the release.yml file with your favorite editor and change some lines:
- You MUST change the PACKAGE_NAME to your package name.
- Also, if you need:
- change FILES_TO_ARCIVE
- comment out the composer install section
- uncomment npm install section
- After changed some lines, commit and push it to your GitHub repository.
Now when you push your tag to GitHub, the release package will be created automatically.
Please install old version of following projects, then you can see update notice.
These projects deploy new releases automatically with GitHub Actions.
Please check .github/workflows/release.yml
Also, you can use Automatic release with Travis.
Following is an example of the .travis.yml
for automatic release.
https://github.com/miya0001/miya-gallery/blob/master/.travis.yml
You can generate deploy:
section by The Travis Client like following.
$ travis setup releases