forked from ropnop/kerbrute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
45 lines (42 loc) · 1.02 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/ropnop/kerbrute
steps:
- checkout
- run: VERSION=${CIRCLE_TAG} make all
- store_artifacts:
path: ./dist
- persist_to_workspace:
root: dist
paths:
- ./*
github-release:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Binaries on Github"
command: |
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
workflows:
version: 2
main:
jobs:
- build:
filters:
tags:
only: /.*/
- github-release:
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+$/
context: "Github Token"
requires:
- build