| Home | Changelog | Contributing | Tech Doc |
Bundles a build directory or file into a zip and uploads it as a workflow artifact.
- Packages
package_pathintoartifacts_path/package_name. - Supports packaging a directory or a single file.
- Uploads the artifacts under the provided
artifacts_name. - Outputs the package and artifacts paths for downstream steps.
| Name | Required | Description |
|---|---|---|
package_path |
No | Path to directory or file to package (default: .). |
artifacts_path |
No | Directory to write artifacts (default: artifacts/assets). |
artifacts_name |
No | Artifact name for upload (default: Build Artifacts). |
package_name |
No | Zip filename (default: package.zip). |
| Name | Description |
|---|---|
package_file |
Path to the created zip file. |
artifacts_path |
Artifacts directory containing the package. |
- Requires
actions: writeto upload artifacts.
zipinstalled (available on GitHub-hosted runners).
- uses: actions/checkout@v4
- name: Create Package
uses: crosswave-technology/ActionLibrary-Create-Package@master
with:
package_path: "."
artifacts_path: "artifacts/assets"