Compare commits

..

2 Commits

Author SHA1 Message Date
Mo Jazi
f3ef75e888 Merge 1ffb9f3303 into 6027e3dd17 2025-03-30 16:53:13 +05:30
mojazi1451176
1ffb9f3303 Update MIGRATION.md 2025-02-27 15:41:02 -08:00
7 changed files with 129587 additions and 175699 deletions

View File

@@ -41,7 +41,7 @@ See also [download-artifact](https://github.com/actions/download-artifact).
## v4 - What's new
> [!IMPORTANT]
> upload-artifact@v4+ is not currently supported on GitHub Enterprise Server (GHES) yet. If you are on GHES, you must use [v3](https://github.com/actions/upload-artifact/releases/tag/v3).
> 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).
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.
@@ -68,24 +68,6 @@ There is also a new sub-action, `actions/upload-artifact/merge`. For more info,
For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
## Note
Thank you for your interest in this GitHub repo, however, right now we are not taking contributions.
We continue to focus our resources on strategic areas that help our customers be successful while making developers' lives easier. While GitHub Actions remains a key part of this vision, we are allocating resources towards other areas of Actions and are not taking contributions to this repository at this time. The GitHub public roadmap is the best place to follow along for any updates on features were working on and what stage theyre in.
We are taking the following steps to better direct requests related to GitHub Actions, including:
1. We will be directing questions and support requests to our [Community Discussions area](https://github.com/orgs/community/discussions/categories/actions)
2. High Priority bugs can be reported through Community Discussions or you can report these to our support team https://support.github.com/contact/bug-report.
3. Security Issues should be handled as per our [security.md](SECURITY.md).
We will still provide security updates for this project and fix major breaking changes during this time.
You are welcome to still raise bugs in this repo.
## Usage
### Inputs

View File

@@ -65,5 +65,5 @@ outputs:
description: >
SHA-256 digest for the artifact that was just uploaded. Empty if the artifact upload failed.
runs:
using: 'node24'
using: 'node20'
main: 'dist/upload/index.js'

147224
dist/merge/index.js vendored

File diff suppressed because one or more lines are too long

145260
dist/upload/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: my-artifact
path: my-artifact
@@ -61,7 +61,7 @@ jobs:
- name: Create a File
run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
- name: Upload Artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v4
with:
- name: my-artifact
@@ -72,7 +72,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v4
with:
- name: my-artifact
@@ -96,7 +96,7 @@ jobs:
- name: Create a file
run: echo "hello world" > my-file.txt
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: my-artifact # NOTE: same artifact name
path: my-file.txt
@@ -107,7 +107,7 @@ jobs:
- name: Create a different file
run: echo "goodbye world" > my-file.txt
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: my-artifact # NOTE: same artifact name
path: my-file.txt
@@ -125,7 +125,7 @@ jobs:
- name: Create a file
run: echo "hello world" > my-file.txt
- name: Upload Artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v4
with:
name: my-artifact # NOTE: same artifact name
@@ -137,7 +137,7 @@ jobs:
- name: Create a different file
run: echo "goodbye world" > my-file.txt
- name: Upload Artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v4
with:
name: my-artifact # NOTE: same artifact name
@@ -162,7 +162,7 @@ jobs:
- name: Create a File
run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: all-my-files # NOTE: same artifact name
path: file-${{ matrix.runs-on }}.txt
@@ -190,7 +190,7 @@ jobs:
- name: Create a File
run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
- name: Upload Artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v4
with:
- name: all-my-files
@@ -226,7 +226,7 @@ jobs:
- name: Create a Hidden File
run: echo "hello from a hidden file" > .hidden-file.txt
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: .hidden-file.txt
```
@@ -240,9 +240,9 @@ jobs:
- name: Create a Hidden File
run: echo "hello from a hidden file" > .hidden-file.txt
- name: Upload Artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v4
with:
path: .hidden-file.txt
+ include-hidden-files: true
```
```

12747
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,7 +29,7 @@
},
"homepage": "https://github.com/actions/upload-artifact#readme",
"dependencies": {
"@actions/artifact": "file:../packages/artifact",
"@actions/artifact": "^2.3.2",
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.0",
"@actions/glob": "^0.5.0",
@@ -38,7 +38,7 @@
},
"devDependencies": {
"@types/jest": "^29.2.5",
"@types/node": "^24.1.0",
"@types/node": "^18.11.18",
"@typescript-eslint/parser": "^5.48.0",
"@vercel/ncc": "^0.36.0",
"concurrently": "^7.6.0",
@@ -50,9 +50,6 @@
"jest-circus": "^29.3.1",
"prettier": "^2.8.1",
"ts-jest": "^29.0.3",
"typescript": "^5.2.2"
},
"overrides": {
"uri-js": "npm:uri-js-replace@^1.0.1"
"typescript": "^4.9.4"
}
}