Skip to content

Commit

Permalink
feat: Begin automating the release process (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
unfunco authored Feb 5, 2024
1 parent 6aed749 commit c9493af
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"changelog-sections": [
{
"hidden": false,
"section": "New features",
"type": "feat"
},
{
"hidden": false,
"section": "Bug fixes",
"type": "fix"
},
{
"hidden": false,
"section": "Miscellaneous",
"type": "chore"
}
],
"draft": false,
"extra-label": "automata 🤖,autorelease: pending,chore 🧹",
"include-v-in-tag": true,
"initial-version": "1.8.0",
"prerelease": false,
"pull-request-header": "🤖 I have created a release",
"pull-request-title-pattern": "chore: Release v${version}",
"release-type": "terraform-module"
}
}
}
1 change: 1 addition & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
21 changes: 19 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths-ignore:
- .editorconfig
- .gitignore
- CHANGELOG.md
- LICENSE.md
- README.md
push:
Expand All @@ -15,6 +16,7 @@ on:
paths-ignore:
- .editorconfig
- .gitignore
- CHANGELOG.md
- LICENSE.md
- README.md

Expand All @@ -26,7 +28,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform_version }}
- name: Initialise with no backend
Expand All @@ -48,8 +50,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github
- run: aws sts get-caller-identity

release:
name: Release?
needs: [ caller-identity ]
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Prepare a release
uses: google-github-actions/release-please-action@v4
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c9493af

Please sign in to comment.