diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..b68c3ec --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..e4c6c0f --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,11 @@ +{ + "changelog-type": "github", + "packages": { + ".": { + "release-type": "go", + "extra-files": [ + "VERSION" + ] + } + } +}