Skip to content

Commit

Permalink
Merge pull request #11 from mr-karan/master
Browse files Browse the repository at this point in the history
Restructure top level go files and add Github Actions
  • Loading branch information
knadh authored Mar 19, 2021
2 parents 2e37ab3 + ed57d9a commit e336050
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 84 deletions.
55 changes: 0 additions & 55 deletions .circleci/config.toml

This file was deleted.

28 changes: 0 additions & 28 deletions .circleci/config.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: goreleaser

on:
push:
tags:
- "v*" # Will trigger only if tag is pushed matching pattern `v*` (Eg: `v0.1.0`)

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: --parallelism 1 --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
config_test.toml
# binary file produced by `make build`.
sql-jobber
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ builds:
- netbsd
goarch:
- amd64
dir: ./cmd/

# Archive customization
archives:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BIN := sql-jobber
.PHONY: build
build:
# Compile the main application.
go build -o ${BIN} -ldflags="-s -w -X 'main.buildString=${BUILDSTR}'"
go build -o ${BIN} -ldflags="-s -w -X 'main.buildString=${BUILDSTR}'" ./cmd/

.PHONY: test
test:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e336050

Please sign in to comment.