Giter Club home page Giter Club logo

github-actions-dbx-upload's Introduction

github-actions-dbx-upload

Publishing to Dropbox programmatically from GitHub Actions with the intentions to mirror the model of AWS S3 publishing.

Notes

Exploring how one might leverage Dropbox as an artifact storage source, with an authentication model that is similar to AWS. Setting up the initial Dropbox Application to get the tokens for publishing was a bit more involved than useful, and I suspect the process of rotating these tokens might be a pain too.

When the system is setting up and going, it works fairly well. The user interface & sharing features of Dropbox fit well with an artifact storage system. The fixed billing plans (& reasonable free limit) make it an appealing option for use in comparison to an IaaS like AWS/GCloud/Azure.

The authentication & publishing process for this is similar to other options (like AWS S3), it would be possible to use it in a way that creates a common interface that allows easy switching between the two as artifact publishing sources like so:

      - name: Configure Dropbox Credentials
        uses: ./.github/actions/configure-dropbox-credentials
        with:
          dropbox-access-key-id: ${{ secrets.DROPBOX_ACCESS_KEY_ID }}
          dropbox-secret-access-key: ${{ secrets.DROPBOX_SECRET_ACCESS_KEY }}
          dropbox-session-token: ${{ secrets.DROPBOX_SESSION_TOKEN }} 

      - name: Upload to artifacts
        uses: ./.github/actions/upload-artifacts-to-dropbox
        with:
          path: packages/
          folder: artifacts/blockycraft/${GITHUB_SHA}

vs

      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.DROPBOX_ACCESS_KEY_ID }}
          aws-access-key-id: ${{ secrets.DROPBOX_SECRET_ACCESS_KEY }}
          aws-session-token: ${{ secrets.DROPBOX_SESSION_TOKEN }} 

      - name: Upload to artifacts
        uses: aws-actions/upload-artifacts-to-s3 # Doesn't exist, but using as stub
        with:
          path: packages/
          folder: artifacts/blockycraft/${GITHUB_SHA}

github-actions-dbx-upload's People

Contributors

jrbeverly avatar

Watchers

James Cloos avatar  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.