remove ProjectFile stuff

This commit is contained in:
2022-02-19 18:09:51 +05:30
parent 67f60bae11
commit 03c02caefb
7 changed files with 20 additions and 280 deletions

View File

@@ -7,6 +7,8 @@ import (
"io/ioutil"
"path/filepath"
"strings"
"code.gitea.io/sdk/gitea"
)
type OutCommand struct {
@@ -83,7 +85,7 @@ func (c *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, err
}
for _, filePath := range matches {
projectFile, err := c.gitea.UploadProjectFile(filePath)
projectFile, err := gitea.CreateReleaseAttachment(filePath)
if err != nil {
return OutResponse{}, err
}