Skip to content

Commit 24db7dd

Browse files
authored
ci: switch to releaser-pleaser (#483)
Switch to [releaser-pleaser](https://github.com/apricote/releaser-pleaser) for planning new releases. This adds the following new features: - We can easily cut pre-releases, these are always useful if we want to allow some customers to test features before making an official release or to validate changes made to the release CI workflows. - We can add our own release notes to each release to better inform customers about the new features we added or about any deprecations.
1 parent 4d430f6 commit 24db7dd

File tree

7 files changed

+28
-35
lines changed

7 files changed

+28
-35
lines changed

.github/release-please-config.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/release-please-manifest.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Releaser-pleaser
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request_target:
7+
types:
8+
- edited
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
releaser-pleaser:
14+
# Do not run on forks.
15+
if: github.repository == 'hetznercloud/hcloud-python'
16+
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: releaser-pleaser
20+
uses: apricote/[email protected]
21+
with:
22+
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
23+
extra-files: |
24+
setup.py
25+
hcloud/_version.py

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Upload coverage reports to Codecov
3232
if: >
3333
!startsWith(github.head_ref, 'renovate/') &&
34-
!startsWith(github.head_ref, 'release-please--')
34+
!startsWith(github.head_ref, 'releaser-pleaser--')
3535
uses: codecov/codecov-action@v5
3636
with:
3737
token: ${{ secrets.CODECOV_TOKEN }}

hcloud/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from __future__ import annotations
22

3-
__version__ = "2.3.0" # x-release-please-version
3+
__version__ = "2.3.0" # x-releaser-pleaser-version

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="hcloud",
10-
version="2.3.0",
10+
version="2.3.0", # x-releaser-pleaser-version
1111
keywords="hcloud hetzner cloud",
1212
description="Official Hetzner Cloud python library",
1313
long_description=readme,

0 commit comments

Comments
 (0)