Skip to content

Commit 66f78e1

Browse files
committed
ci: fix workflow
Signed-off-by: gouravkrosx <[email protected]>
1 parent 98d34b4 commit 66f78e1

File tree

2 files changed

+37
-25
lines changed

2 files changed

+37
-25
lines changed

Diff for: .github/workflows/build.yml

-25
This file was deleted.

Diff for: .github/workflows/go.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
# pull_request_target:
9+
# types: [assigned, opened, synchronize, reopened]
10+
11+
jobs:
12+
13+
build:
14+
runs-on: self-hosted
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
# - name: Check commit messages
21+
# uses: wagoid/commitlint-github-action@v4
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v2
25+
with:
26+
go-version: 1.22
27+
28+
- name: Build
29+
run: go build -v ./...
30+
31+
- uses: codfish/semantic-release-action@v1
32+
with:
33+
dry_run: true
34+
additional_packages: |
35+
['@semantic-release/exec']
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)