Skip to content

Commit da5caf2

Browse files
authored
ci: setup release-please (#186)
Setup release-please to automate creating new tags according to semver rules.
1 parent 8ae0bc6 commit da5caf2

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: release-please
6+
7+
jobs:
8+
release-please:
9+
# The secret HCLOUD_BOT_TOKEN is only available on the main repo, not in forks.
10+
if: github.repository == 'hetznercloud/hcloud-python'
11+
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: google-github-actions/release-please-action@v3
15+
with:
16+
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
17+
release-type: python
18+
package-name: hcloud
19+
20+
extra-files: |
21+
hcloud/__version__.py

hcloud/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.19.0"
1+
VERSION = "1.19.0" # x-release-please-version

0 commit comments

Comments
 (0)