diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 0000000..1b5ccb6 --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,14 @@ +name: Labeler + +on: + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + do: + uses: openkcm/build/.github/workflows/labeler.yaml@main + secrets: inherit diff --git a/.github/workflows/release.yaml b/.github/workflows/release.automatic.yaml similarity index 58% rename from .github/workflows/release.yaml rename to .github/workflows/release.automatic.yaml index c7c7dc7..0264cdc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.automatic.yaml @@ -1,14 +1,12 @@ -name: Git +name: Release New Version on: pull_request: - types: [ closed ] - branches: - - main + types: + - closed permissions: - contents: read - pull-requests: write + contents: write jobs: release: diff --git a/.github/workflows/release.triggered.yaml b/.github/workflows/release.triggered.yaml new file mode 100644 index 0000000..5f617f1 --- /dev/null +++ b/.github/workflows/release.triggered.yaml @@ -0,0 +1,14 @@ +name: New Release (Manual Trigger) + +on: + workflow_dispatch: + +permissions: + contents: read + pull-requests: write + +jobs: + release: + uses: openkcm/build/.github/workflows/release.manual.yaml@main + secrets: inherit + diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..2be9c43 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.2.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..3663f36 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,56 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "draft": false, + "prerelease": false, + "release-type": "go", + "include-v-in-tag": true, + "always-update": true, + "changelog-type": "github", + "changelog-host": "github.com", + "group-pull-request-title-pattern": "chore${scope}: releases ${version}", + "pull-request-header": ":rocket: A new release is on the way! This PR includes all changes since the last version.", + "pull-request-footer": "This PR was generated using [release-please](https://github.com/googleapis/release-please).", + "changelog-sections": [ + { + "type": "feat", + "section": "🚀 Features", + "hidden": false + }, + { + "type": "fix", + "section": "🐛 Bug Fixes", + "hidden": false + }, + { + "type": "docs", + "section": "📝 Documentation", + "hidden": false + }, + { + "type": "chore", + "section": "🧰 Maintenance", + "hidden": false + }, + { + "type": "ci", + "section": "🔧 CI/CD", + "hidden": false + }, + { + "type": "build", + "section": "🧱 Build / Dependencies", + "hidden": false + } + ], + "commit-search-depth": 500, + "release-search-depth": 400, + "packages": { + ".": { + "release-type": "go" + } + }, + "changelog": { + "template": "## Changelog\n\n{{#each commits}}\n- {{this.message}} (#{{this.pullRequestNumber}})\n{{/each}}", + "include-vcs-changes": true + } +}