Skip to content

Commit

Permalink
added action (#6)
Browse files Browse the repository at this point in the history
* added action

* removed rm-dist
  • Loading branch information
cooperspencer authored May 24, 2023
1 parent 0cb4dba commit e391c3c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Go

on:
push:
branches: [ main ]
tags:
- '*'
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.17

- name: Test
run: go test -v ./...

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: charly
path: dist/*

0 comments on commit e391c3c

Please sign in to comment.