Skip to content

Commit

Permalink
ci: switch to releaser-pleaser (#906)
Browse files Browse the repository at this point in the history
Switch to releaser-pleaser[0] 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.

[0] https://github.com/apricote/releaser-pleaser
  • Loading branch information
apricote authored Nov 8, 2024
1 parent 5066d3b commit c49a7ec
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 34 deletions.
13 changes: 0 additions & 13 deletions .github/release-please-config.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/release-please-manifest.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Upload coverage reports to Codecov
if: >
!startsWith(github.head_ref, 'renovate/') &&
!startsWith(github.head_ref, 'release-please--')
!startsWith(github.head_ref, 'releaser-pleaser--')
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/release-please.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/releaser-pleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Releaser-pleaser

on:
push:
branches: [main]
pull_request_target:
types:
- edited
- labeled
- unlabeled

jobs:
releaser-pleaser:
# Do not run on forks.
if: github.repository == 'hetznercloud/cli'

runs-on: ubuntu-latest
steps:
- name: releaser-pleaser
uses: apricote/[email protected]
with:
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
extra-files: |
internal/version/version.go
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package version

var (
// version is a semver version (https://semver.org).
version = "1.48.0" // x-release-please-version
version = "1.48.0" // x-releaser-pleaser-version

// versionPrerelease is a semver version pre-release identifier (https://semver.org).
//
Expand Down

0 comments on commit c49a7ec

Please sign in to comment.