Skip to content

Repository files navigation

Action Library Create Package

| Home | Changelog | Contributing | Tech Doc |


Bundles a build directory or file into a zip and uploads it as a workflow artifact.

Behavior Summary

  • Packages package_path into artifacts_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.

Inputs

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).

Outputs

Name Description
package_file Path to the created zip file.
artifacts_path Artifacts directory containing the package.

Permissions

  • Requires actions: write to upload artifacts.

Requirements

  • zip installed (available on GitHub-hosted runners).

Usage

- uses: actions/checkout@v4
- name: Create Package
  uses: crosswave-technology/ActionLibrary-Create-Package@master
  with:
    package_path: "."
    artifacts_path: "artifacts/assets"

Return to Top

Copyright © Crosswave Technology Ltd

About

Composite GitHub Action for bundling release artifacts into deployable packages.

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors