Skip to content

Commit

Permalink
chore: release generator (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-robitaille authored Sep 11, 2023
1 parent e75ef9b commit 31e1b98
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 5 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release_generator.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/terragrunt-apply-production.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Terragrunt apply PRODUCTION"

on:
push:
branches: [main]
release:
types: [published]

env:
APP_ENV: production
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/terragrunt-plan-production.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: "Terragrunt plan PRODUCTION"

on:
pull_request:
branches: [main]
push:
branches:
- release-please--*

env:
APP_ENV: production
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/terragrunt-plan-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.2.1"
}
30 changes: 30 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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"
}
File renamed without changes.

0 comments on commit 31e1b98

Please sign in to comment.