Skip to content

Upload build artifacts to a specified destination on ShareFile.

Notifications You must be signed in to change notification settings

nichevision/sharefile-upload-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

sharefile-upload-artifact action

This action uploads a build artifact to ShareFile, and creates a Share link as part of its output.

Usage

steps
    - uses: nichevision/sharefile-upload-artifact@v1
    with:
        path: |
         build/*.dll
         build/*.config
        exclude: '*.pdb'
        destination: releases/
        client-id: ${{ secrets.SHAREFILE_CLIENT_ID }}
        client-secret: ${{ secrets.SHAREFILE_CLIENT_SECRET }}
        username: ${{ secrets.SHAREFILE_USERNAME }}
        password: ${{ secrets.SHAREFILE_PASSWORD }}
        subdomain: 'mycompany'

Exclude multiple paths

steps
    - uses: nichevision/sharefile-upload-artifact@v1
    with:
        path: |
         build/*.dll
         build/*.config
        exclude: |
          *.pdb
          *.xml
        destination: releases/
        client-id: ${{ secrets.SHAREFILE_CLIENT_ID }}
        client-secret: ${{ secrets.SHAREFILE_CLIENT_SECRET }}
        username: ${{ secrets.SHAREFILE_USERNAME }}
        password: ${{ secrets.SHAREFILE_PASSWORD }}
        subdomain: 'mycompany'

Outputs

share-url

A url for the share created for the uploaded artifact. The user login must have permissions to share.