aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
blob: df30a588f4a21d8efcd9666f498c8aa5e2ba9194 (plain)
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
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