Use only branch go-cmd for github action #2
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 Go binary | |
on: | |
push: | |
branches: | |
- "go-cmd" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.17.x" | |
- name: Install dependencies | |
run: go get . | |
- name: Build | |
run: go build -o insta-infra . |