Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add release please action #22

Merged
merged 9 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release-please-main

permissions:
contents: write
pull-requests: write
actions: write

on:
workflow_dispatch:
push:
branches:
# (todo): migrate to main
- master
tags:
- 'v*'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tags:
- 'v*'

This action should run on branches.


defaults:
run:
shell: bash

jobs:
release-please:
runs-on:
- ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: googleapis/release-please-action@v4
id: release-please
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json


- name: Tag major and minor versions
if: ${{ steps.release.outputs.release_created }} # Only run if a release was created
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a ${{ steps.release-please.outputs.tag_name }} -m "Release ${{ steps.release-please.outputs.tag_name }}"
git push origin ${{ steps.release-please.outputs.tag_name }}
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.10.4"
}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"packages": {
".": {
"release-type": "go",
"pull-request-title-pattern": "release${scope}: ${component} v${version}",
"changelog-type": "github"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
Loading