Skip to content

Commit

Permalink
feat: v1
Browse files Browse the repository at this point in the history
Signed-off-by: Manfred Touron <[email protected]>
  • Loading branch information
moul committed Mar 18, 2021
1 parent 5f44f71 commit 474bd6e
Show file tree
Hide file tree
Showing 18 changed files with 252 additions and 448 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/debug.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/docker.yml

This file was deleted.

25 changes: 1 addition & 24 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,14 @@ on:
- ".github/workflows/go.yml"

jobs:
goreleaser-dryrun:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Cache Go modules
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser (Dry Run)
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.31
version: v1.38
#github-token: ${{ secrets.GITHUB_TOKEN }}
args: --timeout=2m
only-new-issues: false
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.15.x
-
name: Cache Go modules
if: steps.semantic.outputs.new-release-published == 'true'
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Run GoReleaser
if: steps.semantic.outputs.new-release-published == 'true'
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#-
# name: Cache Go modules
# if: steps.semantic.outputs.new-release-published == 'true'
# uses: actions/[email protected]
# with:
# path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
#-
# name: Run GoReleaser
# if: steps.semantic.outputs.new-release-published == 'true'
# uses: goreleaser/goreleaser-action@v2
# with:
# version: latest
# args: release --rm-dist
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Register version on pkg.go.dev
if: steps.semantic.outputs.new-release-published == 'true'
Expand Down
73 changes: 0 additions & 73 deletions .goreleaser.yml

This file was deleted.

7 changes: 0 additions & 7 deletions AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions Dockerfile

This file was deleted.

5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ NPM_PACKAGES ?= .

include rules.mk

generate: install
generate:
GO111MODULE=off go get github.com/campoy/embedmd
mkdir -p .tmp
echo 'foo@bar:~$$ zapring hello world' > .tmp/usage.txt
zapring hello world 2>&1 >> .tmp/usage.txt
go doc -all > .tmp/usage.txt
embedmd -w README.md
rm -rf .tmp
.PHONY: generate
Expand Down
Loading

0 comments on commit 474bd6e

Please sign in to comment.