Shifter Github Plugin/Theme Installer #7 in Updates & Deployment
Shifter Github Plugin/Theme Installer
by Shifter Team · github.com/getshifter/shifter-github · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/getshifter/shifter-github/releases/download/1.3.2/shifter-github.zipReadme
How to update your plugin/theme.
To release the new version, please do as follows:
Tag and push to GitHub, then upload the package by one of the ways as follows.
$ git tag 1.1.0
$ git push origin 1.1.0
1.1.0is a version number, it has to be same with version number in your WordPress plugin.- You have to commit
vendordirectory in your plugin.
A. Manually release the new version.
- 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".
B. Automated release the new version with GitHub Actions.
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.
Example Projects
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
C. Automated release the new version with Travis.
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 releasesRead the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.3.2 | Nov 22, 2022 | shifter-github.zip | 2,749 |
| 1.3.1 | Dec 15, 2020 | shifter-github.zip | 1,998 |
| 1.3.0 | Dec 15, 2020 | shifter-github.zip | 16 |
| 1.2.7 | Oct 6, 2020 | shifter-github.zip | 352 |
| 1.2.6 | Jun 11, 2020 | shifter-github.zip | 215 |
| 1.2.5 | Feb 23, 2020 | shifter-github.zip | 110 |
| 1.2.4 | Feb 6, 2020 | shifter-github.zip | 37 |
| 1.2.0 | Nov 7, 2019 | shifter-github.zip | 367 |
| 1.1.1 | Sep 5, 2019 | shifter-github.zip | 547 |
| 1.1.0 | Sep 5, 2019 | shifter-github.zip | 8 |
| 1.0.5 | Sep 4, 2019 | shifter-wp-git.zip | 8 |
| 1.0.4 | Sep 4, 2019 | shifter-wp-git.zip | 7 |
| 1.0.3 | Sep 4, 2019 | shifter-wp-git.zip | 6 |
| 1.0.2 | Sep 2, 2019 | shifter-wp-git.zip | 13 |
| 1.0.1 | Aug 30, 2019 | shifter-wp-git.zip | 8 |
| 1.0.0 | Aug 29, 2019 | shifter-wp-git.zip | 10 |
| 0.0.3 | Aug 29, 2019 | shifter-wp-git.zip | 7 |
| 0.0.2 | Aug 29, 2019 | shifter-wp-git.zip | 6 |
| 0.0.1 | Aug 29, 2019 | shifter-wp-git.zip | 8 |
Active-site estimate ≈220 comes from the median of recent superseded releases. Method.