Skip to content

Commit 0bfeb2f

Browse files
authored
refactor(ci): add release process (#7)
* refactor(ci): add release process and rename workflow * chore(ci): add pr validation
1 parent 8ea68b9 commit 0bfeb2f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/lint.yml .github/workflows/main.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: lint
1+
name: main
22

33
on:
44
push:
@@ -21,3 +21,9 @@ jobs:
2121
with:
2222
token: ${{ secrets.GITHUB_TOKEN }}
2323
args: --check .
24+
25+
- name: Release
26+
uses: go-semantic-release/action@v1
27+
if: github.ref == 'refs/heads/main'
28+
with:
29+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pr
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v3
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)