Skipping a deployment with the releases provider because this branch is not permitted

I am not able to generate the apk and deploy it in the release section on Github. I have the following configuration for deployment:

jdk:
  - oraclejdk8
dist: trusty
android:
  components:
    - platform-tools
    - tools

    - build-tools-29.0.2

    - android-29

    - extra-google-google_play_services
    - extra-google-m2repository
    - extra-android-m2repository

before_install:
  - yes | sdkmanager "platforms;android-29"
  - chmod +x gradlew

script:
  - ./gradlew assembleDebug

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/
    - $HOME/.android/build-cache

deploy:
  provider: releases
  api-key: $GITHUB_API_KEY
  file: $TRAVIS_BUILD_DIR/app/build/outputs/apk/debug/app-debug.apk
  file_glob: true
  cleanup: true
  overwrite: true
  name: dev-build-$TRAVIS_TAG
  target_commitish: $TRAVIS_COMMIT
  on:
    tags: true
    branch: master

after_deploy:
  - rm -rf $TRAVIS_BUILD_DIR/app/build/outputs

I am getting the following warning in the console:

Skipping a deployment with the releases provider because this branch is not permitted: v1.0.0