kind: pipeline
name: default

trigger:
    event:
        - tag

steps:
    - name: build
      image: node
      commands:
          - npm install -g vsce
          - npm ci
          - vsce package

    - name: gitea_release
      image: plugins/gitea-release
      settings:
          base_url: https://gitea.raphaelpiccolo.com
          files: ./*.vsix
          api_key:
              from_secret: gitea_token