Create go.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Passgen | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Build | |
run: ./scripts/build.sh | |
- name: Commit and push if changed | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email 'github-actions@github.com' | |
git add bin/ | |
git commit -m "Build and Update binary files" || exit 0 | |
git push |