You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: releases_controller.rb
    path of file: ./repos/zealot/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ReleasesController < ApplicationController
  before_action :authenticate_login!, except: %i[index show auth]
  before_action :set_channel
  before_action :set_release, only:
    
  def create
    @title = t('releases.new.title')
    @release = @channel.releases.upload_file(release_params)
    authorize @release

    return render :new, status: :unprocessable_entity unless @release.save

    # 触发异步任务
    @release.channel.perform_web_hook('upload_events', current_user.id)
    @release.perform_teardown_job(current_user.id)

    message = t('activerecord.success.create', key: "#{t('releases.title')}")
    redirect_to channel_release_path(@channel, @release), notice: message
  end