aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorHarvey Tindall <hrfee@protonmail.ch>2021-01-15 22:15:45 +0000
committerHarvey Tindall <hrfee@protonmail.ch>2021-01-15 22:15:45 +0000
commitbda0879199f5cecda3b71b1273784775bf8621b7 (patch)
treec7f40c9d9edf45a70193812465de5c46d56d8c60 /.drone.yml
parent937769e2f706600d87ed37580fda08456a6df9d9 (diff)
downloadwaybar-mpris-bda0879199f5cecda3b71b1273784775bf8621b7.tar.gz
waybar-mpris-bda0879199f5cecda3b71b1273784775bf8621b7.zip
add drone/buildrone
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..df30a58
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,26 @@
+name: waybar-mpris
+kind: pipeline
+type: docker
+
+steps:
+ - name: build
+ image: golang:latest
+ commands:
+ - apt install -y curl
+ - go mod download
+ - curl -sL https://git.io/goreleaser > goreleaser.sh
+ - chmod +x goreleaser.sh
+ - ./goreleaser.sh --snapshot --skip-publish --rm-dist
+ - wget https://builds.hrfee.pw/upload.py
+ - pip3 install requests
+ - bash -c 'python3 upload.py https://builds.hrfee.pw hrfee waybar-mpris ./dist/*.tar.gz'
+ environment:
+ BUILDRONE_KEY:
+ from_secret: BUILDRONE_KEY
+
+trigger:
+ branch:
+ - main
+ event:
+ exclude:
+ - pull_request