Skip to content

deka0106/upload-to-dropbox

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

Upload to Dropbox

This uploads a file to Dropbox

Usage

See action.yml

Setup

Generate access token that has files.content.write permission on App Console.

Save the token as DROPBOX_ACCESS_TOKEN on your repository Secrets.

Upload a file

- uses: deka0106/upload-to-dropbox@v2
  with:
    dropbox_access_token: ${{ secrets.DROPBOX_ACCESS_TOKEN }}
    src: dist/paper.pdf
    dest: /thesis/

Upload a file with overwrite mode

- uses: deka0106/upload-to-dropbox@v2
  with:
    dropbox_access_token: ${{ secrets.DROPBOX_ACCESS_TOKEN }}
    src: dist/paper.pdf
    dest: /thesis/
    mode: overwrite

Upload a file with specified name

- uses: deka0106/upload-to-dropbox@v2
  with:
    dropbox_access_token: ${{ secrets.DROPBOX_ACCESS_TOKEN }}
    src: dist/paper.pdf
    dest: /thesis/my-thesis.pdf

Upload multiple files

- uses: deka0106/upload-to-dropbox@v2
  with:
    dropbox_access_token: ${{ secrets.DROPBOX_ACCESS_TOKEN }}
    src: dist/**/*
    dest: /dest/
    multiple: true