Skip to content

Commit 425d2e3

Browse files
committed
Storing bin files from action
1 parent d001948 commit 425d2e3

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
build:
11+
if: github.actor != 'github-actions[bot]'
1112
runs-on: ${{ matrix.os }}
1213
strategy:
1314
matrix:
@@ -39,4 +40,31 @@ jobs:
3940

4041
- name: Build
4142
if: startsWith(matrix.os, 'windows')
42-
run: go build -v -o ./bin/hsa.exe
43+
run: go build -v -o ./bin/hsa.exe
44+
45+
- name: Commit and Push Binaries (Ubuntu)
46+
if: startsWith(matrix.os, 'ubuntu')
47+
run: |
48+
git config --local user.email "action@github.com"
49+
git config --local user.name "GitHub Action"
50+
git add ./bin/hsa
51+
git commit -m "Add Ubuntu built binary [skip ci]"
52+
git push
53+
54+
- name: Commit and Push Binaries (MacOS)
55+
if: startsWith(matrix.os, 'macos')
56+
run: |
57+
git config --local user.email "action@github.com"
58+
git config --local user.name "GitHub Action"
59+
git add ./bin/hsamac
60+
git commit -m "Add MacOS built binary [skip ci]"
61+
git push
62+
63+
- name: Commit and Push Binaries (Windows)
64+
if: startsWith(matrix.os, 'windows')
65+
run: |
66+
git config --local user.email "action@github.com"
67+
git config --local user.name "GitHub Action"
68+
git add ./bin/hsa.exe
69+
git commit -m "Add Windows built binary [skip ci]"
70+
git push

0 commit comments

Comments
 (0)