sudo: false
language: java
jdk:
  - oraclejdk8
addons:
  apt:
    packages:
      - rpm
before_deploy:
  - mvn jdeb:jdeb && export RELEASE_DEB_FILE=$(ls target/*.deb)
  - mvn rpm:rpm && export RELEASE_RPM_FILE=$(find target/ -name '*.rpm' | tail -1)
  - rm -f target/original-*.jar
  - export RELEASE_PKG_FILE=$(ls target/*.jar)
  - echo "Deploying release to GitHub releases"
deploy:
  provider: releases
  api_key:
    secure: MW9KC7aQBizwTLp09WqCp49FhlZKXyctpyzDemklr5BWPHFJ/hP+wyaDcpyctu9mPPIrpzYgIWDdIa4vDvJFj15YWuR1W8ngtX/T9iU7743TB3yUB7otZCdA6Zoba9J8Lq64J5T6HuO6ou/LL2MFUQOgpgUkLUWwT9y1NSoLrbI=
  file: 
    - "${RELEASE_PKG_FILE}"
    - "${RELEASE_DEB_FILE}"
    - "${RELEASE_RPM_FILE}"
  skip_cleanup: true
  on:
    tags: true
    jdk: oraclejdk8

sudo: false
language: java
jdk:
  - oraclejdk8
addons:
  apt:
    packages:
      - rpm
before_deploy:
  - mvn jdeb:jdeb && export RELEASE_DEB_FILE=$(ls target/*.deb)
  - mvn rpm:rpm && export RELEASE_RPM_FILE=$(find target/ -name '*.rpm' | tail -1)
  - rm -f target/original-*.jar
  - export RELEASE_PKG_FILE=$(ls target/*.jar)
  - echo "Deploying release to GitHub releases"
deploy:
  provider: releases
  api_key:
    secure: "IltfQr/7O90BCKlujv2YZ/UPtbPxkDjrfwaRDKYzKtFcRe4zead2cCHOS6pFkkTiJupzxmiX8U0CvwvfX160k/JMaxR+VN7QmT49UCPgxg3GsCtHrmCjAI4jx+DrIyuJGv94uE9mdC4TEAoLlsB0OyFwSIZQqE2DapDPkzEXzPY="
  file: 
    - "${RELEASE_PKG_FILE}"
    - "${RELEASE_DEB_FILE}"
    - "${RELEASE_RPM_FILE}"
  skip_cleanup: true
  on:
    tags: true
    jdk: oraclejdk8
    repo: graylog-labs/graylog-plugin-dnsresolver

Fix GitHub API key in Travis CI config
Fix GitHub API key in Travis CI config

[ci skip]
