-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add initial release-please config
Signed-off-by: Jakob Steiner <[email protected]>
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.11.7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |