Skip to content
play

GitHub Action

Upload a Build Artifact As-Is

v0 Latest version

Upload a Build Artifact As-Is

play

Upload a Build Artifact As-Is

Uploads a build artifact with its name as-is, that you can download later

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Upload a Build Artifact As-Is

uses: kittaakos/upload-artifact-as-is@v0

Learn more about this action in kittaakos/upload-artifact-as-is

Choose a version

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