Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

kittaakos/upload-artifact-as-is

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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