1glab(1)                                                                glab(1)
2
3
4

NAME

6       glab-release-upload - Upload release asset files or links to GitLab Re‐
7       lease
8
9
10

SYNOPSIS

12       glab release upload  [...] [flags]
13
14
15

DESCRIPTION

17       Upload release assets to GitLab Release
18
19
20       You can define the display name by appending '#' after the  file  name.
21       The  link type comes after the display name (eg. 'myfile.tar.gz#My dis‐
22       play name#package')
23
24
25

OPTIONS

27       -a, --assets-links=""      JSON string representation of  assets  links
28       (e.g.     --assets-links='[{"name":    "Asset1",    "url":"https://<do‐
29       main>/some/location/1",     "link_type":      "other",      "filepath":
30       "path/to/file"}]')
31
32
33

OPTIONS INHERITED FROM PARENT COMMANDS

35       --help[=false]      Show help for command
36
37
38       -R,  --repo=""       Select  another repository using the OWNER/REPO or
39       GROUP/NAMESPACE/REPO format or full URL or git URL
40
41
42

EXAMPLE

44       Upload a release asset with a display name (type will default to 'other')
45       $ glab release upload v1.0.1 '/path/to/asset.zip#My display label'
46
47       Upload a release asset with a display name and type
48       $ glab release upload v1.0.1 '/path/to/asset.png#My display label#image'
49
50       Upload all assets in a specified folder (types will default to 'other')
51       $ glab release upload v1.0.1 ./dist/*
52
53       Upload all tarballs in a specified folder (types will default to 'other')
54       $ glab release upload v1.0.1 ./dist/*.tar.gz
55
56       Upload release assets links specified as JSON string
57       $ glab release upload v1.0.1 --assets-links='
58         [
59           {
60             "name": "Asset1",
61             "url":"https://<domain>/some/location/1",
62             "link_type": "other",
63             "filepath": "path/to/file"
64           }
65         ]'
66
67
68
69
70

SEE ALSO

72       glab-release(1)
73
74
75
76Auto generated by spf13/cobra      Nov 2023                            glab(1)
Impressum