Skip to content

Commit 4d80372

Browse files
authored
Update go.yml
1 parent d9c86b5 commit 4d80372

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/go.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
1-
# This workflow will build a golang project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3-
4-
name: Go
1+
name: Go Build and Commit
52

63
on:
74
push:
85
branches: [ "master" ]
96
pull_request:
107
branches: [ "master" ]
118

12-
jobs:
9+
permissions:
10+
contents: write
1311

12+
jobs:
1413
build:
1514
runs-on: ubuntu-latest
1615
steps:
1716
- uses: actions/checkout@v4
1817

1918
- name: Set up Go
20-
uses: actions/setup-go@v4
19+
uses: actions/setup-go@v5
2120
with:
2221
go-version: '1.24'
2322

2423
- name: Build
25-
run: go build -v ./...
24+
run: go build -v -o install ./...
2625

2726
- name: Test
2827
run: go test -v ./...
28+
29+
- name: Commit and Push executable
30+
uses: stefanzweifel/git-auto-commit-action@v5
31+
with:
32+
commit_message: "CI: Update fast_mtproxy build"
33+
file_pattern: fast_mtproxy

0 commit comments

Comments
 (0)