Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 2ed0c33

Browse files
committed
feat: add release flow
1 parent a700254 commit 2ed0c33

4 files changed

Lines changed: 57 additions & 0 deletions

File tree

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Default (fallback)
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
11+
# Go: use tabs (official Go style)
12+
[*.go]
13+
indent_style = tab
14+
indent_size = 4
15+
16+
# YAML, JSON, Markdown, EditorConfig: 2 spaces
17+
[*.{yml,yaml,json,md,editorconfig}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
# GitHub Actions workflows
22+
[.github/workflows/*.yml]
23+
indent_style = space
24+
indent_size = 2
25+
26+
# Makefiles must use tab
27+
[Makefile]
28+
indent_style = tab

.github/workflows/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/create-github-app-token@v2
12+
id: app-token
13+
with:
14+
app-id: ${{ secrets.XROSS_STARS_RELEASER_GITHUB_APP_ID }}
15+
private-key: ${{ secrets.XROSS_STARS_RELEASER_GITHUB_APP_PRIVATE_KEY }}
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
token: ${{ steps.app-token.outputs.token }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.0"
3+
}

release-please-config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "go",
4+
"include-component-in-tag": false,
5+
"packages": {
6+
".": {}
7+
}
8+
}

0 commit comments

Comments
 (0)