diff --git a/.chglog/CHANGELOG.md.tpl b/.chglog/CHANGELOG.md.tpl
deleted file mode 100644
index d3b51aa..0000000
--- a/.chglog/CHANGELOG.md.tpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{ range .Versions -}}
-
-
-## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
-
-{{ range .CommitGroups -}}
-### {{ .Title }}
-
-{{ range .Commits -}}
-- {{ .Subject }}
-{{ end }}
-{{ end -}}
-
-{{- if .RevertCommits -}}
-### Reverts
-
-{{ range .RevertCommits -}}
-- {{ .Revert.Header }}
-{{ end }}
-{{ end -}}
-
-{{- if .NoteGroups -}}
-{{ range .NoteGroups -}}
-### {{ .Title }}
-
-{{ range .Notes }}
-{{ .Body }}
-{{ end }}
-{{ end -}}
-{{ end -}}
-{{ end -}}
diff --git a/.chglog/config.yml b/.chglog/config.yml
deleted file mode 100644
index 53c20f1..0000000
--- a/.chglog/config.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-style: github
-template: CHANGELOG.md.tpl
-info:
- title: CHANGELOG
- repository_url: https://github.com/jooola/gh-release-install
-options:
- commits:
- filters:
- Type:
- - feat
- - fix
- - ci
- commit_groups:
- title_maps:
- feat: ":rocket: Features"
- fix: ":bug: Bug Fixes"
- ci: ":gear: CI/CD"
- header:
- pattern: "^(\\w*)\\:\\s(.*)$"
- pattern_maps:
- - Type
- - Subject
- notes:
- keywords:
- - BREAKING CHANGE
diff --git a/.github/release-please-config.json b/.github/release-please-config.json
new file mode 100644
index 0000000..fad90b3
--- /dev/null
+++ b/.github/release-please-config.json
@@ -0,0 +1,11 @@
+{
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
+ "bootstrap-sha": "e0c14902e04a94400d543861f630beadb5156114",
+ "include-component-in-tag": false,
+ "packages": {
+ ".": {
+ "release-type": "python",
+ "package-name": "gh-release-install"
+ }
+ }
+}
diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json
new file mode 100644
index 0000000..8e605c6
--- /dev/null
+++ b/.github/release-please-manifest.json
@@ -0,0 +1 @@
+{".":"0.11.0"}
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
new file mode 100644
index 0000000..039862d
--- /dev/null
+++ b/.github/workflows/release-please.yml
@@ -0,0 +1,16 @@
+name: Release please
+
+on:
+ push:
+ branches: [main]
+
+jobs:
+ release-please:
+ if: github.repository == 'jooola/gh-release-install'
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: google-github-actions/release-please-action@v4
+ with:
+ config-file: .github/release-please-config.json
+ manifest-file: .github/release-please-manifest.json
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6f55a6f..52dba83 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,6 +30,7 @@ repos:
hooks:
- id: prettier
files: \.(md|yml|yaml|json)$
+ exclude: (\.github/release-please-manifest\.json|CHANGELOG\.md)$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5eb1612..4963440 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,5 @@
+# Changelog
+
## [v0.11.0](https://github.com/jooola/gh-release-install/compare/v0.10.1...v0.11.0) (2023-05-30)
diff --git a/Makefile b/Makefile
index 6475c27..3443e74 100644
--- a/Makefile
+++ b/Makefile
@@ -36,9 +36,3 @@ examples: install
ci-publish: install
poetry publish --no-interaction --build
-
-changelog:
- git-chglog --output CHANGELOG.md
- if command -v npx > /dev/null; then npx prettier --write CHANGELOG.md; fi
- git add CHANGELOG.md
- git commit -m "docs: regenerate changelog"
diff --git a/RELEASE.md b/RELEASE.md
deleted file mode 100644
index 04b900d..0000000
--- a/RELEASE.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Releases
-
-To release a new version, first bump the version number in `pyproject.toml` by hand or by using:
-
-```sh
-# poetry version --help
-poetry version
-```
-
-Run the release script:
-
-```sh
-./scripts/release.sh
-```
-
-Finally, push the release commit and tag to publish them to Pypi:
-
-```sh
-git push --follow-tags
-```