Skip to content

Commit d06d23d

Browse files
committed
update to github actions
Signed-off-by: Jess Frazelle <[email protected]>
1 parent e0a3749 commit d06d23d

File tree

17 files changed

+77
-2143
lines changed

17 files changed

+77
-2143
lines changed

.github/workflows/make-all.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on: push
2+
name: make all
3+
jobs:
4+
makeall:
5+
name: make all
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: make all
10+
uses: docker://golang:latest
11+
with:
12+
entrypoint: bash
13+
args: -c "go get honnef.co/go/tools/cmd/staticcheck && go get golang.org/x/lint/golint && make all"

.github/workflows/make-image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: push
2+
name: make image
3+
jobs:
4+
makeimage:
5+
name: make image
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: make image
10+
run: make image
11+
shell: bash

.github/workflows/make-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
tags:
4+
- v*
5+
name: make release
6+
jobs:
7+
makerelease:
8+
name: make release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: make release
13+
uses: docker://golang:latest
14+
with:
15+
args: make release
16+
- name: upload assets
17+
uses: docker://r.j3ss.co/github-dev
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
entrypoint: bash
22+
args: -c "upload-assets ./cross/*"
23+
- name: update release body
24+
uses: docker://r.j3ss.co/pepper
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
entrypoint: sh
29+
args: -c "pepper release --repo $GITHUB_REPOSITORY -d --nouser"

.github/workflows/toc.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
push:
3+
branches:
4+
- master # Push events on master branch
5+
name: Table of Contents Generator
6+
jobs:
7+
generateTOC:
8+
name: TOC Generator
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: TOC Generator
12+
uses: technote-space/toc-generator@v1
13+
with:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
TARGET_PATHS: "README.md"

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.traviskey

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# sshb0t
22

3-
[![Travis CI](https://img.shields.io/travis/genuinetools/sshb0t.svg?style=for-the-badge)](https://travis-ci.org/genuinetools/sshb0t)
3+
![make-all](https://github.com/genuinetools/sshb0t/workflows/make%20all/badge.svg)
4+
![make-image](https://github.com/genuinetools/sshb0t/workflows/make%20image/badge.svg)
45
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/genuinetools/sshb0t)
56
[![Github All Releases](https://img.shields.io/github/downloads/genuinetools/sshb0t/total.svg?style=for-the-badge)](https://github.com/genuinetools/sshb0t/releases)
67

@@ -12,15 +13,8 @@ account and you make sure to delete old keys from your account.
1213

1314
**Table of Contents**
1415

15-
<!-- toc -->
16-
17-
- [Installation](#installation)
18-
+ [Binaries](#binaries)
19-
+ [Via Go](#via-go)
20-
+ [Running with Docker](#running-with-docker)
21-
- [Usage](#usage)
22-
23-
<!-- tocstop -->
16+
<!-- START doctoc -->
17+
<!-- END doctoc -->
2418

2519
## Installation
2620

@@ -65,4 +59,4 @@ Commands:
6559
version Show the version information.
6660
```
6761

68-
[![Analytics](https://ga-beacon.appspot.com/UA-29404280-16/sshb0t/README.md)](https://github.com/genuinetools/sshb0t)
62+
[![Analytics](https://ga-beacon.appspot.com/UA-29404280-16/sshb0t/README.md)](https://github.com/genuinetools/sshb0t)

basic.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ release: *.go VERSION.txt prebuild ## Builds the cross-compiled binaries, naming
137137
.PHONY: bump-version
138138
BUMP := patch
139139
bump-version: ## Bump the version in the version file. Set BUMP to [ patch | major | minor ].
140-
@$(GO) get -u github.com/jessfraz/junk/sembump # update sembump tool
140+
@$(GO) get -u github.com/jessfraz/junk/sembump || true # update sembump tool
141141
$(eval NEW_VERSION = $(shell sembump --kind $(BUMP) $(VERSION)))
142142
@echo "Bumping VERSION.txt from $(VERSION) to $(NEW_VERSION)"
143143
echo $(NEW_VERSION) > VERSION.txt
@@ -150,7 +150,7 @@ bump-version: ## Bump the version in the version file. Set BUMP to [ patch | maj
150150
.PHONY: tag
151151
tag: ## Create a new git tag to prepare to build a release.
152152
git tag -sa $(VERSION) -m "$(VERSION)"
153-
@echo "Run git push origin $(VERSION) to push your new tag to GitHub and trigger a travis build."
153+
@echo "Run git push origin $(VERSION) to push your new tag to GitHub and trigger a release."
154154

155155
REGISTRY := r.j3ss.co
156156
.PHONY: image

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ require (
1212
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
1313
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
1414
)
15+
16+
go 1.13

vendor/golang.org/x/sys/unix/mkpost.go

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)