diff --git a/.drone.yml b/.drone.yml index 8a16f5c..99f8e03 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,4 +10,8 @@ platform: steps: - name: build commands: - - go build \ No newline at end of file + - make + + - name: install + commands: + - make install \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bebd9d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +config.json \ No newline at end of file diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..9019059 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1 @@ +craft-bot \ No newline at end of file diff --git a/makefile b/makefile new file mode 100644 index 0000000..8c5de62 --- /dev/null +++ b/makefile @@ -0,0 +1,12 @@ +.PHONY: build + +all: build + +build: build/craft-bot + +build/craft-bot: *.go + go build -o build/craft-bot *.go + +install: build + mkdir -p /usr/local/craft-bot + install build/craft-bot /usr/local/craft-bot/ \ No newline at end of file