Skip to content

Commit 3d05601

Browse files
author
Joris Conijn
authored
chore: version bump (#37)
Trigger release on merge to main branch. Issue: #20
1 parent 988f32b commit 3d05601

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Create Release
22
on:
33
push:
4-
tags:
5-
- 'v*'
4+
branches:
5+
- main
66

77
jobs:
88
build:
@@ -35,6 +35,9 @@ jobs:
3535
release_name: Release v${{ steps.vars.outputs.version }}
3636
draft: false
3737
prerelease: false
38+
- uses: release-drafter/release-drafter@v5
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3841
- name: Upload Release Asset
3942
id: upload-release-asset
4043
uses: actions/upload-release-asset@v1

CONTRIBUTING.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,10 @@ reported the issue. Please try to include as much information as you can.
1616

1717
## Releases
1818

19-
First you will need to update the `version` in the [`pyproject.toml`](./pyproject.toml) file. Next you need to merge the
20-
change to the `develop` branch using a pull request.
19+
First you will need to update the `version` in the [`pyproject.toml`](./pyproject.toml) file.
20+
Next you need to merge these changes into the `develop` branch using a pull request.
2121

22-
Lookup the generated release notes, they are listed as draft. Copy them to a temporary file for later use.
23-
24-
Then you need to create a new release. You can do this by creating a tag and push it to the remote:
25-
26-
```bash
27-
git tag v$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g')
28-
git push --tags
29-
```
30-
31-
This will trigger the GitHub Actions [`release`](.github/workflows/release.yml) workflow. When the release process is
32-
done. You need to create a pull request from `develop` to `main` and merge it.
33-
34-
Then you need to the releases section on GitHub and update the new release. Go to the releases section on GitHub and
35-
update the new release with the previously stored release notes.
22+
You need to create a pull request from `develop` to `main` and merge it. This will trigger the GitHub Actions [`release`](.github/workflows/release.yml)
23+
workflow.
3624

3725
All done!

0 commit comments

Comments
 (0)