Skip to content

Commit

Permalink
ci: add release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswinger committed Nov 11, 2024
1 parent 1112321 commit 98d67f9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/on-push-main-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

name: "Push to main branch"
on:
workflow_dispatch:
push:
branches:
- main

jobs:
run-release-please:
uses: ./.github/workflows/release-please.yaml
secrets:
RELEASE_PLEASE_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_dispatch:
workflow_call:
secrets:
RELEASE_PLEASE_TOKEN:
required: true

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: simple

outputs:
release_created: ${{ steps.release.outputs.release_created }}

0 comments on commit 98d67f9

Please sign in to comment.