Skip to content

Commit

Permalink
ci(release): auto release (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
TartanLeGrand authored Apr 12, 2024
1 parent a148a57 commit 82e7c71
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 13 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/conventional-commits-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Conventional Commits Check

on:
pull_request:
branches: [ develop ]

jobs:
check-conventional-commits:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check Commit Conventions
uses: webiny/[email protected]
16 changes: 8 additions & 8 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
--target-branch=develop \
--chart-dirs=. \
--chart-repos=bitnami=https://charts.bitnami.com/bitnami,bitnami-old=https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami,sentry-kubernetes=https://sentry-kubernetes.github.io/charts
# It would be nice to turn on this testing, but it is hard to get right and
# rather complex (as well as expensive in terms of runner compute time).
# Additionally, this is out of scope of fixing the issue brought up in #456
# - name: Create kind cluster
# uses: helm/[email protected]
# if: steps.list-changed.outputs.changed == 'true'
# - name: Run chart-testing (install)
# run: ct install --target-branch=develop --chart-dirs=.
# It would be nice to turn on this testing, but it is hard to get right and
# rather complex (as well as expensive in terms of runner compute time).
# Additionally, this is out of scope of fixing the issue brought up in #456
# - name: Create kind cluster
# uses: helm/[email protected]
# if: steps.list-changed.outputs.changed == 'true'
# - name: Run chart-testing (install)
# run: ct install --target-branch=develop --chart-dirs=.
9 changes: 4 additions & 5 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Build and push Chart

on:
push:
branches:
- develop
tags:
- '*'

jobs:
build-push:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: 'main'

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: 'gh-pages'

Expand All @@ -35,7 +35,6 @@ jobs:
with:
command: package main/sentry --destination gh-pages/charts


- name: Build zips
uses: yeouchien/helm3-action@f3a7c239c5c60777210c8e631839edf5dd3fa29c
with:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Please

on:
push:
branches:
- develop

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Release Please Action
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
17 changes: 17 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
"clickhouse": {
"release-type": "helm",
"changelog-path": "CHANGELOG.md"
},
"sentry": {
"release-type": "helm",
"changelog-path": "CHANGELOG.md"
},
"sentry-kubernetes": {
"release-type": "helm",
"changelog-path": "CHANGELOG.md"
}
}
}

0 comments on commit 82e7c71

Please sign in to comment.