You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+25-96
Original file line number
Diff line number
Diff line change
@@ -1,72 +1,17 @@
1
-
# `@actions/upload-artifact`
1
+
# `namespace-actions/upload-artifact`
2
2
3
-
Upload [Actions Artifacts](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts)from your Workflow Runs. Internally powered by [@actions/artifact](https://github.com/actions/toolkit/tree/main/packages/artifact) package.
3
+
Namespace's version of Upload [Actions Artifacts](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts)compatible with the [upload-artifact](https://github.com/actions/upload-artifact).
4
4
5
-
See also [download-artifact](https://github.com/actions/download-artifact).
5
+
The artifacts are stored in Namespace internal storage. They will not be visible and billed in GitHub.
-[Upload an Individual File](#upload-an-individual-file)
16
-
-[Upload an Entire Directory](#upload-an-entire-directory)
17
-
-[Upload using a Wildcard Pattern](#upload-using-a-wildcard-pattern)
18
-
-[Upload using Multiple Paths and Exclusions](#upload-using-multiple-paths-and-exclusions)
19
-
-[Altering compressions level (speed v. size)](#altering-compressions-level-speed-v-size)
20
-
-[Customization if no files are found](#customization-if-no-files-are-found)
21
-
-[(Not) Uploading to the same artifact](#not-uploading-to-the-same-artifact)
22
-
-[Environment Variables and Tilde Expansion](#environment-variables-and-tilde-expansion)
23
-
-[Retention Period](#retention-period)
24
-
-[Using Outputs](#using-outputs)
25
-
-[Example output between steps](#example-output-between-steps)
26
-
-[Example output between jobs](#example-output-between-jobs)
27
-
-[Overwriting an Artifact](#overwriting-an-artifact)
28
-
-[Limitations](#limitations)
29
-
-[Number of Artifacts](#number-of-artifacts)
30
-
-[Zip archives](#zip-archives)
31
-
-[Permission Loss](#permission-loss)
32
-
-[Where does the upload go?](#where-does-the-upload-go)
33
-
34
-
35
-
## v4 - What's new
36
-
37
-
> [!IMPORTANT]
38
-
> upload-artifact@v4+ is not currently supported on GHES yet. If you are on GHES, you must use [v3](https://github.com/actions/upload-artifact/releases/tag/v3).
39
-
40
-
The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.
41
-
42
-
For more information, see the [`@actions/artifact`](https://github.com/actions/toolkit/tree/main/packages/artifact) documentation.
43
-
44
-
There is also a new sub-action, `actions/upload-artifact/merge`. For more info, check out that action's [README](./merge/README.md).
45
-
46
-
### Improvements
47
-
48
-
1. Uploads are significantly faster, upwards of 90% improvement in worst case scenarios.
49
-
2. Once uploaded, an Artifact ID is returned and Artifacts are immediately available in the UI and [REST API](https://docs.github.com/en/rest/actions/artifacts). Previously, you would have to wait for the run to be completed before an ID was available or any APIs could be utilized.
50
-
3. The contents of an Artifact are uploaded together into an _immutable_ archive. They cannot be altered by subsequent jobs unless the Artifacts are deleted and recreated (where they will have a new ID). Both of these factors help reduce the possibility of accidentally corrupting Artifact files.
51
-
4. The compression level of an Artifact can be manually tweaked for speed or size reduction.
52
-
53
-
### Breaking Changes
54
-
55
-
1. On self hosted runners, additional [firewall rules](https://github.com/actions/toolkit/tree/main/packages/artifact#breaking-changes) may be required.
56
-
2. Uploading to the same named Artifact multiple times.
57
-
58
-
Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you _will_ encounter an error.
59
-
60
-
3. Limit of Artifacts for an individual job. Each job in a workflow run now has a limit of 500 artifacts.
61
-
62
-
For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
7
+
Download artifacts with [download-artifact](https://github.com/namespace-actions/download-artifact).
63
8
64
9
## Usage
65
10
66
11
### Inputs
67
12
68
13
```yaml
69
-
- uses: actions/upload-artifact@v4
14
+
- uses: namespace-actions/upload-artifact@v0
70
15
with:
71
16
# Name of the artifact to upload.
72
17
# Optional. Default is 'artifact'
@@ -118,7 +63,7 @@ For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
118
63
steps:
119
64
- run: mkdir -p path/to/artifact
120
65
- run: echo hello > path/to/artifact/world.txt
121
-
- uses: actions/upload-artifact@v4
66
+
- uses: namespace-actions/upload-artifact@v0
122
67
with:
123
68
name: my-artifact
124
69
path: path/to/artifact/world.txt
@@ -127,7 +72,7 @@ steps:
127
72
### Upload an Entire Directory
128
73
129
74
```yaml
130
-
- uses: actions/upload-artifact@v4
75
+
- uses: namespace-actions/upload-artifact@v0
131
76
with:
132
77
name: my-artifact
133
78
path: path/to/artifact/ # or path/to/artifact
@@ -136,7 +81,7 @@ steps:
136
81
### Upload using a Wildcard Pattern
137
82
138
83
```yaml
139
-
- uses: actions/upload-artifact@v4
84
+
- uses: namespace-actions/upload-artifact@v0
140
85
with:
141
86
name: my-artifact
142
87
path: path/**/[abc]rtifac?/*
@@ -145,7 +90,7 @@ steps:
145
90
### Upload using Multiple Paths and Exclusions
146
91
147
92
```yaml
148
-
- uses: actions/upload-artifact@v4
93
+
- uses: namespace-actions/upload-artifact@v0
149
94
with:
150
95
name: my-artifact
151
96
path: |
@@ -193,7 +138,7 @@ For instance, if you are uploading random binary data, you can save a lot of tim
@@ -206,7 +151,7 @@ But, if you are uploading data that is easily compressed (like plaintext, code,
206
151
- name: Make a file with a lot of repeated text
207
152
run: |
208
153
for i in {1..100000}; do echo -n 'foobar' >> foobar.txt; done
209
-
- uses: actions/upload-artifact@v4
154
+
- uses: namespace-actions/upload-artifact@v0
210
155
with:
211
156
name: my-artifact
212
157
path: foobar.txt
@@ -218,7 +163,7 @@ But, if you are uploading data that is easily compressed (like plaintext, code,
218
163
If a path (or paths), result in no files being found for the artifact, the action will succeed but print out a warning. In certain scenarios it may be desirable to fail the action or suppress the warning. The `if-no-files-found` option allows you to customize the behavior of the action if no files are found:
219
164
220
165
```yaml
221
-
- uses: actions/upload-artifact@v4
166
+
- uses: namespace-actions/upload-artifact@v0
222
167
with:
223
168
name: my-artifact
224
169
path: path/to/artifact/
@@ -227,17 +172,17 @@ If a path (or paths), result in no files being found for the artifact, the actio
227
172
228
173
### (Not) Uploading to the same artifact
229
174
230
-
Unlike earlier versions of `upload-artifact`, uploading to the same artifact via multiple jobs is _not_ supported with `v4`.
175
+
Uploading to the same artifact via multiple jobs is _not_ supported.
231
176
232
177
```yaml
233
178
- run: echo hi > world.txt
234
-
- uses: actions/upload-artifact@v4
179
+
- uses: namespace-actions/upload-artifact@v0
235
180
with:
236
181
# implicitly named as 'artifact'
237
182
path: world.txt
238
183
239
184
- run: echo howdy > extra-file.txt
240
-
- uses: actions/upload-artifact@v4
185
+
- uses: namespace-actions/upload-artifact@v0
241
186
with:
242
187
# also implicitly named as 'artifact', will fail here!
Within an individual job, there is a limit of 500 artifacts that can be created for that job.
412
-
413
-
You may also be limited by Artifacts if you have exceeded your shared storage quota. Storage is calculated every 6-12 hours. See [the documentation](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending) for more info.
414
-
415
354
### Zip archives
416
355
417
356
When an Artifact is uploaded, all the files are assembled into an immutable Zip archive. There is currently no way to download artifacts in a format other than a Zip or to download individual artifact contents.
@@ -427,18 +366,8 @@ If you must preserve permissions, you can `tar` all of your files together befor
427
366
run: tar -cvf my_files.tar /path/to/my/directory
428
367
429
368
- name: 'Upload Artifact'
430
-
uses: actions/upload-artifact@v4
369
+
uses: namespace-actions/upload-artifact@v0
431
370
with:
432
371
name: my-artifact
433
372
path: my_files.tar
434
373
```
435
-
436
-
## Where does the upload go?
437
-
438
-
At the bottom of the workflow summary page, there is a dedicated section for artifacts. Here's a screenshot of something you might see:
0 commit comments