diff --git a/.github/workflows/release_generator.yml b/.github/workflows/release_generator.yml new file mode 100644 index 000000000..e264b75f4 --- /dev/null +++ b/.github/workflows/release_generator.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - develop + +permissions: + contents: write + pull-requests: write + +name: Release Generator + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@ca6063f4ed81b55db15b8c42d1b6f7925866342d # v3.7.11 + with: + command: manifest + token: ${{secrets.RELEASE_GENERATOR_TOKEN}} + release-type: simple + default-branch: develop diff --git a/.github/workflows/terragrunt-apply-production.yml b/.github/workflows/terragrunt-apply-production.yml index ccd9f66bd..88b8d5cf1 100644 --- a/.github/workflows/terragrunt-apply-production.yml +++ b/.github/workflows/terragrunt-apply-production.yml @@ -1,8 +1,8 @@ name: "Terragrunt apply PRODUCTION" on: - push: - branches: [main] + release: + types: [published] env: APP_ENV: production diff --git a/.github/workflows/terragrunt-plan-production.yml b/.github/workflows/terragrunt-plan-production.yml index bff920801..2b305d4ee 100644 --- a/.github/workflows/terragrunt-plan-production.yml +++ b/.github/workflows/terragrunt-plan-production.yml @@ -1,8 +1,9 @@ name: "Terragrunt plan PRODUCTION" on: - pull_request: - branches: [main] + push: + branches: + - release-please--* env: APP_ENV: production diff --git a/.github/workflows/terragrunt-plan-staging.yml b/.github/workflows/terragrunt-plan-staging.yml index 52094aef3..8a864c997 100644 --- a/.github/workflows/terragrunt-plan-staging.yml +++ b/.github/workflows/terragrunt-plan-staging.yml @@ -2,7 +2,9 @@ name: "Terragrunt plan STAGING" on: pull_request: - branches: [develop] + branches: + - "develop" + - "!release-please--*" # ignore release-please PRs paths: - "aws/**" - "env/common/**" diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..a9e40ee00 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "3.2.1" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..87fba7a6f --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,30 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "simple", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false, + "pull-request-title-pattern": "chore: GCForms release v${version}" + } + }, + "changelog-sections": [ + { "type": "feat", "section": "Features" }, + { "type": "feature", "section": "Features" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "revert", "section": "Reverts", "hidden": true }, + { "type": "docs", "section": "Documentation" }, + { "type": "style", "section": "Styles" }, + { "type": "chore", "section": "Miscellaneous Chores" }, + { "type": "refactor", "section": "Code Refactoring" }, + { "type": "test", "section": "Tests", "hidden": true }, + { "type": "build", "section": "Build System", "hidden": true }, + { "type": "ci", "section": "Continuous Integration", "hidden": true } + ], + "include-component-in-tag": false, + "include-v-in-tag": true, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} diff --git a/VERSION b/version.txt similarity index 100% rename from VERSION rename to version.txt