diff --git a/.drone.yml b/.drone.yml index dbb8252..3153998 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,13 +30,7 @@ steps: commands: - . /root/.profile - cd hyp - - go build . - - mv -f hyp /dist - - cd ../hypd/server - - go generate - - cd .. - - go build . - - mv -f hypd /dist + - go build -o /dist/hyp-linux-amd64 . - name: build hypd (server) linux-amd64 @@ -54,8 +48,7 @@ steps: - cd hypd/server - go generate - cd .. - - go build . - - mv -f hypd /dist + - go build -o /dist/hypd-linux-amd64 . - name: build hyp (client) windows-amd64 @@ -71,9 +64,7 @@ steps: commands: - . /root/.profile - cd hyp - - go build . - - mv -f hyp.exe /dist - + - go build -o /dist/hyp-windows-amd64.exe . - name: release @@ -94,5 +85,5 @@ steps: volumes: - name: publicrelease host: - path: /data/public/build + path: /data/public/build/hyp