Skip to content

Commit

Permalink
Update release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslak Hellesøy committed Aug 19, 2020
1 parent f705985 commit e0a0260
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
19 changes: 9 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ help us to correct style violations reported here:
## Release Process

* Upgrade gems with `scripts/update-gemspec`
* Bump the version number in `lib/cucumber/version`.
* Make sure `CHANGELOG.md` is updated with the upcoming version number, and has entries for all fixes.

Now release it

bundle update
bundle exec rake
git commit -m "Release X.Y.Z"
# Make sure you run gem signin as the cukebot@cucumber.io user before running the following step. Credentials can be found in 1Password
rake release
* Bump the version number in `lib/cucumber/version`
* Update `CHANGELOG.md` with the upcoming version number and create a new `In Git` section
* Remove empty sections from `CHANGELOG.md`
* Now release it:

```
git commit -m "Release X.Y.Z"
make release
```
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,22 @@ bin/json-formatter: $(MONOREPO_PATH)/json-formatter/go/dist/cucumber-json-format

clean:
rm -rf acceptance/*.json bin/json-formatter
.PHONY: clean
.PHONY: clean

release:
[ -d '../secrets' ] || git clone keybase://team/cucumberbdd/secrets ../secrets
git -C ../secrets pull
../secrets/update_permissions
docker run \
--volume "${shell pwd}":/app \
--volume "${shell pwd}/../secrets/import-gpg-key.sh":/home/cukebot/import-gpg-key.sh \
--volume "${shell pwd}/../secrets/codesigning.key":/home/cukebot/codesigning.key \
--volume "${shell pwd}/../secrets/.ssh":/home/cukebot/.ssh \
--volume "${shell pwd}/../secrets/.gem":/home/cukebot/.gem \
--volume "${HOME}/.gitconfig":/home/cukebot/.gitconfig \
--env-file ../secrets/secrets.list \
--user 1000 \
--rm \
-it cucumber/cucumber-build:latest \
bundle && bundle exec rake && bundle exec rake release
.PHONY: release

0 comments on commit e0a0260

Please sign in to comment.