File tree Expand file tree Collapse file tree 2 files changed +43
-6
lines changed Expand file tree Collapse file tree 2 files changed +43
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " pre-release"
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - " master"
8
+
9
+
10
+ jobs :
11
+ pre-release :
12
+ name : " Pre Release"
13
+ runs-on : " ubuntu-latest"
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v2
22
+ with :
23
+ go-version : 1.16
24
+
25
+
26
+ - name : " Build & test"
27
+ run : " make tools release-artifacts"
28
+
29
+ - uses : " marvinpinto/action-automatic-releases@latest"
30
+ with :
31
+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
32
+ automatic_release_tag : " latest"
33
+ prerelease : true
34
+ title : " Development Build"
35
+ files : |
36
+ LICENSE
37
+ builds/dist/*
Original file line number Diff line number Diff line change @@ -3,21 +3,21 @@ GIT_COMMIT = `git rev-parse HEAD | cut -c1-7`
3
3
VERSION = $(shell git describe --tags)
4
4
BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION ) "
5
5
6
- gotty : main.go server/* .go webtty/* .go backend/* .go Makefile asset
6
+ gotty : main.go server/* .go webtty/* .go backend/* .go Makefile server/ asset.go
7
7
go build ${BUILD_OPTIONS}
8
8
9
9
docker :
10
10
docker build . -t gotty-bash:$(VERSION )
11
11
12
- .PHONY : asset
13
- asset : bindata/static/js/gotty.js bindata/static/index.html bindata/static/icon.svg bindata/static/favicon.ico bindata/static/css/index.css bindata/static/css/xterm.css bindata/static/css/xterm_customize.css bindata/static/manifest.json bindata/static/icon_192.png server/asset.go
12
+ .PHONY : assets
13
+ assets : bindata/static/js/gotty.js bindata/static/index.html bindata/static/icon.svg bindata/static/favicon.ico bindata/static/css/index.css bindata/static/css/xterm.css bindata/static/css/xterm_customize.css bindata/static/manifest.json bindata/static/icon_192.png
14
14
15
- server/asset.go : bindata/ * bindata/ * / * bindata/ * / * / *
15
+ server/asset.go : assets
16
16
go-bindata -prefix bindata -pkg server -ignore=\\ .gitkeep -o server/asset.go bindata/...
17
17
gofmt -w server/asset.go
18
18
19
19
.PHONY : all
20
- all : asset gotty docker
20
+ all : gotty docker
21
21
22
22
bindata :
23
23
mkdir bindata
91
91
shasums :
92
92
cd ${OUTPUT_DIR} /dist; sha256sum * > ./SHA256SUMS
93
93
94
- release-artifacts : asset gotty cross_compile targz shasums
94
+ release-artifacts : gotty cross_compile targz shasums
95
95
96
96
release :
97
97
ghr -draft ${VERSION} ${OUTPUT_DIR} /dist # -c ${GIT_COMMIT} --delete --prerelease -u sorenisanerd -r gotty ${VERSION}
You can’t perform that action at this time.
0 commit comments