Skip to content

Commit

Permalink
Create go.yml automation
Browse files Browse the repository at this point in the history
  • Loading branch information
waisbrot authored Dec 27, 2023
1 parent 0c1b1ce commit db0d2e2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: gz
GHR_PATH: birdweather_daily_email
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit db0d2e2

Please sign in to comment.