Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): auto release #1213

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
Loading