Build a Jar and deploy it with gradle and travis ci

Hi guys,
Sorry if i this is the wrong category, i’m a newbie.

Anyway, i’m trying to deploy a jar file, but he always give me a zip instead of a jar https://github.com/GABRYCA/Prison_Ranks/releases

This is the travis.yml

language: java
install: true

os: linux
dist: trusty
jdk: oraclejdk8

before_cache:

  • rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
  • rm -fr $HOME/.gradle/caches/*/plugin-resolution/
    cache:
    directories:
    • $HOME/.gradle/caches/
    • $HOME/.gradle/wrapper/

script:

deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: “PrisonRanks.jar”
skip_cleanup: true

Another thing, i can’t use my gradle.build because when i put it in my deploy script or in the script section it says ‘error 127’