Skip to content

Commit

Permalink
add goreleaser, remove circle (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Dec 15, 2020
1 parent b901780 commit 170eb76
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 124 deletions.
43 changes: 0 additions & 43 deletions .circleci/config.yml

This file was deleted.

79 changes: 0 additions & 79 deletions .circleci/release.bash

This file was deleted.

18 changes: 18 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
labels:
- T:dependencies
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
labels:
- T:dependencies
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -14,9 +14,9 @@ jobs:
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@master
- uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.28
version: v1.30
args: --timeout 10m
github-token: ${{ secrets.github_token }}
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,27 @@
name: "Release"

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10

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

- uses: actions/setup-go@v2
with:
go-version: '1.15'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .goreleaser.yml
@@ -0,0 +1,20 @@
project_name: tm-load-test

env:
# Require use of Go modules.
- GO111MODULE=on

checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256

release:
name_template: "{{.Version}}"

archives:
files:
- LICENSE
- README.md
- UPGRADING.md
- SECURITY.md
- CHANGELOG.md

0 comments on commit 170eb76

Please sign in to comment.