Code Monkey home page Code Monkey logo

action-sharepoint-upload's Introduction

action-sharepoint-upload

This action will upload file to Sharepoint library

Inputs

Input name Required Description Example
site_url Yes The Sharepoint site url https://you.sharepoint.com/sites/mySite
sharepoint_user Yes The username to use for authentication [email protected]
sharepoint_password Yes The user's password
Use GitHub Actions Secrets to store sensible informations
MyPassword123!
destination_folder Yes The path relative to site where to upload a file /Shared documents/${{ github.repository }}/releases
local_file Yes The path of the file you want to upload ${{ github.workspace }}/test.txt
remote_file No The name of the file on the sharepoint site test_release.txt

Example usage

You may use this action to store your artifacts on Sharepoint or to put application releases there.

name: 'Sharepoint release'

on:
  release:
    types: created

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
    
    - name: Cloning repo # This step is required
      uses: actions/checkout@v2

    - name: Sharepoint upload file
      uses: actions/action-sharepoint-upload@v1
      with:
        site_url: 'https://you.sharepoint.com/sites/mySite'
        sharepoint_user: ${{ secrets.USER }}
        sharepoint_password: ${{ secrets.PASS }}
        destination_folder: /Shared Documents/${{ github.repository }}
        local_file: "your file location"
        remote_file: "filename on the server"

Big credits to https://github.com/obrassard/action-sharepoint-publish work, which was a trigger to write this action.

action-sharepoint-upload's People

Contributors

mikaczma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.