/upload-artifact-as-is

Primary LanguageTypeScriptMIT LicenseMIT

upload-artifact-as-is

Inspired by actions/upload-artifact. The credit goes there. 🏅

This GitHub Action uploads build artifacts, but unlike the original actions/upload-artifact GitHub Action, this one does not require the desired artifact name, but uses the original name of the files for the uploads. No artifact name customization is possible.

Inputs

path

Required A file, directory or wildcard pattern that describes what to upload.

Example usage

    - uses: kittaakos/upload-artifact-as-is@v1
    with:
        path: path/to/artifactDir/ # or path/to/artifactDir or path/to/artifactFile or path/to/**/wildcard/*

In action:

    steps:
      - name: Checkout
        uses: actions/checkout@master

      - run: mkdir -p path/to/artifact
      - run: echo hello1 > path/to/artifact/world1.txt
      - run: echo hello2 > path/to/artifact/world2.txt

      - uses: kittaakos/upload-artifact-as-is@v0
        with:
          path: path/to/artifact/

Output:

Screen Shot 2020-05-15 at 12 58 38