Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

rensatsu/deploy-to-dropbox

 
 

Repository files navigation

deploy-to-dropbox

A GitHub Action to deploy to Dropbox

Setup

Follow this guide to create and get your access token.

Save the token to your repository Settings > Secrets:

  • Name: DROPBOX_ACCESS_TOKEN
  • Value: YOUR_TOKEN_FROM_DROPBOX_APP_CONSOLE

Usage

In your workflow add the following code:

- name: Upload to Dropbox uses: rensatsu/deploy-to-dropbox@master with: DROPBOX_ACCESS_TOKEN: ${{ secrets.DROPBOX_ACCESS_TOKEN }} GLOB: dist/* FILE_WRITE_MODE: overwrite

Inputs

  • DROPBOX_ACCESS_TOKEN - Access token for Dropbox.
  • GLOB - Glob pattern of files to upload.
  • FILE_WRITE_MODE - Set file write mode when conflict occurs. Allowed modes: "add", "overwrite", "update".

Head over to action.yml for more information about variables.

Developing

To properly bump version:

npm run tag:patch && git push --follow-tags

Debugging

This action uses "Step Debug Logs" for debug output. You can enable debug output by creating a new secret variable ACTIONS_STEP_DEBUG with value true. Click here for more details.

About

A GitHub Action to deploy to Dropbox

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 100.0%