diff --git a/.github/files/release-please/.release-please-manifest.json b/.github/files/release-please/.release-please-manifest.json new file mode 100644 index 0000000..466df71 --- /dev/null +++ b/.github/files/release-please/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +} diff --git a/.github/files/release-please/release-please-config.json b/.github/files/release-please/release-please-config.json new file mode 100644 index 0000000..d20e833 --- /dev/null +++ b/.github/files/release-please/release-please-config.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "rust", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false, + "include-component-in-tag": false, + "pull-request-title-pattern": "release: v${version}" + } + } +} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..77eb36c --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,21 @@ +on: + push: + branches: main + +name: release-please + +jobs: + release-please: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release-please.outputs.release_created }} + tag_name: ${{ steps.release-please.outputs.tag_name }} + steps: + - uses: google-github-actions/release-please-action@a2d8d683f209466ee8c695cd994ae2cf08b1642d # v4.0.1 + id: release-please + with: + config-file: .github/files/release-please/release-please-config.json + manifest-file: .github/files/release-please/.release-please-manifest.json