Drone Gitea Upload not creating step

config (stripped down to steps only):

steps:
  - name: build
    image: openjdk:8
    commands:
      - ./gradlew build
      - rm build/libs/*-dev.jar

  - name: deploy-staging
    image: openjdk:8
    volumes:
      - name: staging
        path: /staging
    commands:
      - mv build/libs/*.jar /staging/mods

  - name: gitea_release
    image: plugins/gitea-release
    settings:
      api_key: $DILATON_API_KEY  # set in the Secrets tab, taken from the Create Access Token menu on gitea
      base_url: https://dilaton.martmists.com
      files: build/libs/*.jar
    when:
      event: tag

This config does not create a gitea step on drone.
Commands used (git):

$ git commit -m "Some commit message"
$ git tag 0.1.1
$ git push

Creating a release+tag on the repo manually also does not trigger a build.

So when you push a commit, do the build and deploy-staging steps run, or does nothing run at all?

Edit: I’m not sure if your syntax is actually valid, but the docs suggest the condition should be specified like this:

when:
  event:
  - tag