Merge pull request #8 from LacledesLAN/dependabot/github_actions/acti… #31
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: linux/amd64 | |
on: | |
schedule: | |
- cron: '0 0 1 */2 *' # Every other month | |
push: | |
branches: [ master ] | |
workflow_dispatch: # Allows action to be run manually from the Actions tab | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
cache: true | |
- name: Test | |
run: go test ./... | |
- name: Build | |
run: go build -ldflags="-X main.GitCommitHash=$(git rev-parse --short HEAD)" -o ./get5 ./cmd/build-config/main.go | |
- name: Save artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: get5-cli | |
path: ./get5 |