mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-18 13:53:42 +00:00
enhance: add builtin:upload-artifact (#1343)
Co-authored-by: bircni <[email protected]>
This commit is contained in:
1 parent
8c8950d9ef
commit
02446620df
30 files changed
+1881
-20
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// Copyright 2026 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package uploadartifact
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"mime"
|
||||
"path"
|
||||
)
|
||||
|
||||
func mimeTypeOf(name string) string {
|
||||
return cmp.Or(mime.TypeByExtension(path.Ext(name)), "application/octet-stream")
|
||||
}
|
||||
Reference in new issue
Block a user