Skip to content

Warhammer4000/FileStack-Share-Artifact

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

Repository files navigation

Filestack Share Artifact

Total alerts Language grade: JavaScript

This uploads a file to Filestack and outputs the download link.

Setup

  1. Get your API Key from here https://www.filestack.com/ [It's Free!]
  2. Save the File Stack API KEY as FILESTACK_API on your repository Secrets.
  3. Configure your .yml file with the example bellow

Inputs

API_KEY

Required API Key for FileStack API.

FILE_PATH

Required Path of the file to be uploaded.

Outputs

File_LINK

Download link will be saved here

Upload a file

  - name: Share File Via FileStack
        uses: Warhammer4000/FileStack-Share-Artifact@main # This is the action
        id: filestack # This is needed to get the output in a different action.
        with:
              API_KEY: ${{secrets.FILESTACK_API}}
              FILE_PATH: Checkout.text
      - name: Get the output url
        run: echo "Download Link is:${{ steps.filestack.outputs.File_LINK}}"    

Sample Use