Skip to content

Commit

Permalink
Merge pull request #194 from CellProfiling/0.7.4
Browse files Browse the repository at this point in the history
0.7.4
  • Loading branch information
MartinHjelmare authored Mar 11, 2020
2 parents 9927caf + 9c7767c commit 6c16073
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 51 deletions.
10 changes: 10 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name-template: "$NEXT_PATCH_VERSION 🌈"
tag-template: "$NEXT_PATCH_VERSION"
categories:
- title: "Breaking changes:"
labels:
- "breaking change"
template: |
## Merged pull requests:
$CHANGES
17 changes: 0 additions & 17 deletions .github/workflows/check-rc.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Draft release

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- develop

jobs:
update-release-draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "develop"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43 changes: 24 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Release

on:
pull_request:
branches: [master]
types: [closed]
release:
types: [published]

jobs:
build:
Expand All @@ -26,31 +27,35 @@ jobs:
name: built-output
path: ./dist

release:
generate_changelog:
runs-on: ubuntu-latest
if: github.event.pull_request.merged && startsWith(github.head_ref, 'rc')
name: Generate changelog for default branch
steps:
- uses: actions/checkout@v2
- name: Tag and prepare release
id: tag_and_prepare_release
uses: K-Phoen/[email protected]
with:
ref: master

- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
release_branch: master
tag_format: "%major%.%minor%.%patch%"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release notes
if: steps.tag_and_prepare_release.outputs.tag
uses: Roang-zero1/[email protected]
base: HISTORY.md
since_tag: "0.7.0"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
with:
created_tag: ${{ steps.tag_and_prepare_release.outputs.tag }}
update_existing: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
base: master
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update changelog
title: Update changelog
body: Update the changelog. This PR is created automatically after a new release.
branch: update-changelog

publish:
runs-on: ubuntu-latest
needs: [build, release]
needs: [build]
steps:
- name: Load saved build output
uses: actions/download-artifact@v1
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

**Merged pull requests:**

- 0.7.3 [\#189](https://github.com/CellProfiling/cam_acq/pull/189) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Fix release and publish actions [\#188](https://github.com/CellProfiling/cam_acq/pull/188) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Bump version to 0.7.3.dev0 [\#187](https://github.com/CellProfiling/cam_acq/pull/187) ([MartinHjelmare](https://github.com/MartinHjelmare))

Expand Down
38 changes: 38 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
## [0.6.0](https://github.com/CellProfiling/cam_acq/tree/0.6.0) (2020-02-14)
[Full Changelog](https://github.com/CellProfiling/cam_acq/compare/0.5.0...0.6.0)

**Breaking Changes:**

- Replace os.path with pathlib [\#169](https://github.com/CellProfiling/cam_acq/pull/169) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Refactor sample [\#165](https://github.com/CellProfiling/cam_acq/pull/165) ([MartinHjelmare](https://github.com/MartinHjelmare))

**Closed issues:**

- Replace str.format with f-strings [\#168](https://github.com/CellProfiling/cam_acq/issues/168)

**Merged pull requests:**

- 0.6.0 [\#174](https://github.com/CellProfiling/cam_acq/pull/174) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Use leicaimage instead of leicaexperiment [\#173](https://github.com/CellProfiling/cam_acq/pull/173) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Scheduled monthly dependency update for February [\#172](https://github.com/CellProfiling/cam_acq/pull/172) ([pyup-bot](https://github.com/pyup-bot))
- Change license to Apache 2.0 [\#171](https://github.com/CellProfiling/cam_acq/pull/171) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Make toggle automation more robust [\#170](https://github.com/CellProfiling/cam_acq/pull/170) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Convert format strings to f-strings [\#167](https://github.com/CellProfiling/cam_acq/pull/167) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Order automations functions and classes logically [\#166](https://github.com/CellProfiling/cam_acq/pull/166) ([MartinHjelmare](https://github.com/MartinHjelmare))

## [0.5.0](https://github.com/CellProfiling/cam_acq/tree/0.5.0) (2019-12-12)
[Full Changelog](https://github.com/CellProfiling/cam_acq/compare/0.4.0...0.5.0)

**Breaking Changes:**

- Remove gain plugin [\#162](https://github.com/CellProfiling/cam_acq/pull/162) ([MartinHjelmare](https://github.com/MartinHjelmare))

**Merged pull requests:**

- 0.5.0 [\#164](https://github.com/CellProfiling/cam_acq/pull/164) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Fix make\_proj [\#163](https://github.com/CellProfiling/cam_acq/pull/163) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Add lint to scripts [\#161](https://github.com/CellProfiling/cam_acq/pull/161) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Fix travis pypi deploy round 2 [\#160](https://github.com/CellProfiling/cam_acq/pull/160) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Fix travis pypi deploy [\#159](https://github.com/CellProfiling/cam_acq/pull/159) ([MartinHjelmare](https://github.com/MartinHjelmare))
- Update manifest to exclude more files [\#158](https://github.com/CellProfiling/cam_acq/pull/158) ([MartinHjelmare](https://github.com/MartinHjelmare))

## [0.4.0](https://github.com/CellProfiling/cam_acq/tree/0.4.0) (2019-12-07)
[Full Changelog](https://github.com/CellProfiling/cam_acq/compare/0.3.1...0.4.0)

Expand Down
11 changes: 5 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Release procedure

- Create a release branch from develop, called `rc`.
It's important to name it correctly to allow the github release action to work.
- Merge `master` branch into the release branch `rc` to make the PR mergeable.
- Create a release branch from develop.
- Merge `master` branch into the release branch to make the PR mergeable.
- Update version in `VERSION`to the new version number, eg `'0.2.0'`.
- Update `CHANGELOG.md` by running `scripts/gen_changelog`.
- Commit and push the release branch.
- Create a pull request from release branch `rc` to `master` with the upcoming release number as the title. Put the changes for the new release from the updated changelog as the PR message.
- Add a label to the pull request, `patch`, `minor` or `major`. This will allow the github release action to work.
- Create a pull request from release branch to `master` with the upcoming release number as the title.
- Merge the pull request into `master`, do not squash.
- Wait for all GitHub actions to have run successfully.
- Go to GitHub releases page and publish the current draft release, setting the correct title and tag version from master branch. Do not use a `v` prefix for the tag.
- Fetch and checkout the `master` branch.
- Fetch and checkout the `develop` branch.
- Merge `master` into branch `develop`.
Expand Down
2 changes: 1 addition & 1 deletion camacq/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.3
0.7.4
9 changes: 1 addition & 8 deletions scripts/gen_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
GITHUB_PROJECT = "cam_acq"
GITHUB_USER = "CellProfiling"
HISTORY_FILE = "HISTORY.md"
# Change this to 0.5.0 after changelog is generated when releasing 0.5.0.
TAG_SINCE = "0.5.0"
TAG_SINCE = "0.7.0"


def validate_version():
Expand Down Expand Up @@ -46,12 +45,6 @@ def generate():
"--project",
GITHUB_PROJECT,
"-v",
"--with-unreleased",
"--future-release",
version,
"--section",
"**Breaking Changes:**",
"breaking change",
"--since-tag",
TAG_SINCE,
"--base",
Expand Down

0 comments on commit 6c16073

Please sign in to comment.