Skip to content
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
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,32 @@ jobs:
gh release create $VERSION $PRERELEASE_FLAG \
-t "Release $VERSION" \
--generate-notes
chart-release:
permissions:
contents: write
runs-on: "ubuntu-24.04"
needs: release
if: contains(needs.release.result, 'success')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create release notes
env:
tag_version: ${{ github.ref_name }}
run: |
cat <<EOF > ./charts/ofen/RELEASE.md
Helm chart for ofen [$tag_version](https://github.com/cybozu-go/ofen/releases/tag/$tag_version)

EOF
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
with:
config: "cr.yaml"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions charts/ofen/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "0.2.0"
4 changes: 4 additions & 0 deletions cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
owner: cybozu-go
git-repo: ofen
release-name-template: "{{ .Name }}-chart-{{ .Version }}"
release-notes-file: RELEASE.md