Skip to content

Commit

Permalink
Storing bin files from action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaestroError committed Sep 20, 2023
1 parent d001948 commit 425d2e3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
build:
if: github.actor != 'github-actions[bot]'
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -39,4 +40,31 @@ jobs:

- name: Build
if: startsWith(matrix.os, 'windows')
run: go build -v -o ./bin/hsa.exe
run: go build -v -o ./bin/hsa.exe

- name: Commit and Push Binaries (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./bin/hsa
git commit -m "Add Ubuntu built binary [skip ci]"
git push
- name: Commit and Push Binaries (MacOS)
if: startsWith(matrix.os, 'macos')
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./bin/hsamac
git commit -m "Add MacOS built binary [skip ci]"
git push
- name: Commit and Push Binaries (Windows)
if: startsWith(matrix.os, 'windows')
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./bin/hsa.exe
git commit -m "Add Windows built binary [skip ci]"
git push

0 comments on commit 425d2e3

Please sign in to comment.