Skip to content

Commit

Permalink
ci: update release-please-action to v4 (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola authored Dec 19, 2023
1 parent 6071420 commit 97d13cd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"bootstrap-sha": "607142011735c29af438d62666dc63031de9c310",
"include-component-in-tag": false,
"include-v-in-tag": true,
"packages": {
".": {
"release-type": "go",
"package-name": "hcloud-go",
"extra-files": ["hcloud/hcloud.go"]
}
}
}
1 change: 1 addition & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"2.5.1"}
22 changes: 8 additions & 14 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
name: Release-please

on:
push:
branches:
- main
- release-1.x

name: release-please

jobs:
release-please:
# Do not run on forks.
if: github.repository == 'hetznercloud/hcloud-go'

runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
with:
release-type: go
package-name: hcloud-go

# hcloud-go is consumed directly from the git tag.
# To make sure that the version in the user-agent is up-to-date,
# we need to write it to a file that is included in the git tag.
extra-files: |
hcloud/hcloud.go
# Configuration for multiple active release branches
default-branch: ${{ github.ref_name }}
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json

0 comments on commit 97d13cd

Please sign in to comment.