Skip to content

Commit

Permalink
Merge pull request ampproject#2170 from ampproject/bump/v1.1.1
Browse files Browse the repository at this point in the history
Release 1.1.1
  • Loading branch information
westonruter authored Apr 23, 2019
2 parents 8a463d8 + 011b297 commit 885e488
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://amp-wp.org
* Author: AMP Project Contributors
* Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
* Version: 1.1.1-alpha
* Version: 1.1.1
* Text Domain: amp
* Domain Path: /languages/
* License: GPLv2 or later
Expand Down Expand Up @@ -115,7 +115,7 @@ function _amp_print_build_needed_notice() {

define( 'AMP__FILE__', __FILE__ );
define( 'AMP__DIR__', dirname( __FILE__ ) );
define( 'AMP__VERSION', '1.1.1-alpha' );
define( 'AMP__VERSION', '1.1.1' );

/**
* Print admin notice if plugin installed with incorrect slug (which impacts WordPress's auto-update system).
Expand Down
13 changes: 9 additions & 4 deletions bin/tag-built.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

set -e

tag=$(git describe --tags)
tag=$(cat build/amp.php | grep 'Version:' | sed 's/.*: //')
if [[ -z "$tag" ]]; then
echo "Error: Unable to determine tag."
echo "Error: Unable to determine tag from build/amp.php."
exit 1
fi
if ! git rev-parse "$tag" >/dev/null 2>&1; then
echo "Error: Tag does not exist: $tag"
exit 2
fi

built_tag="$tag-built"
if git rev-parse "$built_tag" >/dev/null 2>&1; then
Expand All @@ -19,8 +23,9 @@ if ! git diff-files --quiet || ! git diff-index --quiet --cached HEAD --; then
exit 3
fi

git checkout "$tag"
npm run build
if [[ -e built ]]; then
rm -rf built
fi
mkdir built
git clone . built/
cd built
Expand Down
13 changes: 7 additions & 6 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@ Contributors who want to make a new release, follow these steps:
7. Run `npm run deploy` to commit the plugin to WordPress.org.
8. Confirm the release is available on WordPress.org; try installing it on a WordPress install and confirm it works.
9. Publish GitHub release.
10. Create built release tag: `git fetch --tags && git checkout $(git tag | tail -n1) && ./bin/tag-built.sh` (then add link from release)
11. Create a new branch off of the release branch (e.g. `update/develop-with-1.0.x`), merge `develop` into it and resolve conflicts (e.g. with version), and then open pull request to merge changes into `develop`.
12. Merge release tag into `master`.
13. Publish release blog post, including link to GitHub release.
14. Close the GitHub milestone and project.
15. Make announcements.
10. Create built release tag (from the just-created `build` directory): `git fetch --tags && ./bin/tag-built.sh` (then add link from release)
11. For new major/minor releases, create a release branch from the tag. Patch versions are made from the release branch.
12. Bump `Stable tag` in the `readme.txt`/`readme.md` in `develop`. Cherry-pick other changes as necessary.
13. Merge release tag into `master`.
14. Publish release blog post, including link to GitHub release.
15. Close the GitHub milestone and project.
16. Make announcements.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Enable AMP on your WordPress site, the WordPress way.
**Tags:** [amp](https://wordpress.org/plugins/tags/amp), [mobile](https://wordpress.org/plugins/tags/mobile)
**Requires at least:** 4.9
**Tested up to:** 5.1
**Stable tag:** 1.1.0
**Stable tag:** 1.1.1
**License:** [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
**Requires PHP:** 5.4

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: automattic, xwp, google, westonruter, ryankienstra, batmoo, stubgo
Tags: amp, mobile
Requires at least: 4.9
Tested up to: 5.1
Stable tag: 1.1.0
Stable tag: 1.1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 5.4
Expand Down

0 comments on commit 885e488

Please sign in to comment.