Skip to content

Commit

Permalink
ci: add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
funkypenguin authored and MunifTanjim committed Nov 21, 2024
1 parent 5f22bfb commit 5265fba
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,17 @@ jobs:
run: go build -v ./...
- name: Test
run: go test

release:
name: release
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- check
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
pull-requests: write
steps:
- name: Release
uses: google-github-actions/release-please-action@v4
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.0.0"
}
12 changes: 12 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json",
"release-type": "simple",
"bump-minor-pre-major": true,
"group-pull-request-title-pattern": "chore: release",
"include-v-in-tag": false,
"packages": {
".": {
"release-type": "go"
}
}
}

0 comments on commit 5265fba

Please sign in to comment.