diff --git a/.github/workflows/on-push-main-branch.yaml b/.github/workflows/on-push-main-branch.yaml new file mode 100644 index 0000000..96adaa3 --- /dev/null +++ b/.github/workflows/on-push-main-branch.yaml @@ -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 }} diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 0000000..bddc3cc --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -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 }}