Skip to content

Commit

Permalink
ci: add initial release-please config
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Steiner <[email protected]>
  • Loading branch information
kosmoz authored and cdxker committed Sep 5, 2024
1 parent 247a8ca commit cbdc978
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Update release PR and create release

on:
push:
branches:
- main
workflow_dispatch:

jobs:
release-please:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release Please
id: release-please
uses: googleapis/release-please-action@v4

publish-manifest:
needs:
- release-please
if: ${{ needs.release-please.outputs.releases_created == 'true'
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up kubectl
uses: azure/setup-kubectl@v4
with:
version: "v1.29.1"
- name: Build Manifest
run: kubectl kustomize glasskube/trieve > glasskube/manifest.yaml
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.tag_name }} glasskube/manifest.yaml
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.11.7"
}
27 changes: 27 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"bootstrap-sha": "c04a5c4691997e54ec54030cea1dae8ab4486c10",
"release-type": "simple",
"prerelease": false,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"extra-files": [],
"packages": {
".": {}
},
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "chore", "section": "Other" },
{ "type": "docs", "section": "Docs" },
{ "type": "perf", "section": "Performance" },
{ "type": "build", "hidden": true, "section": "Build" },
{ "type": "deps", "section": "Dependency Updates" },
{ "type": "ci", "hidden": true, "section": "CI" },
{ "type": "refactor", "section": "Refactoring" },
{ "type": "revert", "hidden": true, "section": "Reverts" },
{ "type": "style", "hidden": true, "section": "Styling" },
{ "type": "test", "hidden": true, "section": "Tests" }
],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit cbdc978

Please sign in to comment.