Giter Club home page Giter Club logo

netlify_deploy's Introduction

Netlify Deploy CLI

This is a Rust CLI that uses the Netlify API to deploy sites.

To work properly, the NETLIFY_SITE_ID and NETLIFY_AUTH_TOKEN environment variables need to be set, similar to the official Netlify CLI.

This is still an early-on prototype so there may be bugs about. It does not have the full functionality of the official CLI but it was able to solve my particular use case of running netlify deploy in CI environments.

netlify_deploy's People

Contributors

lannonbr avatar mdarrik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

netlify_deploy's Issues

Setup full release CI workflow

I currently have a system that I can manually create a pre-release and then grab the artifacts based on the git commit, but for more stable builds, I'd like to have a workflow that is as follows:

  • User creates tag / release draft. This triggers Actions workflow
  • Run linting & testing (rustfmt, cargo check and cargo clippy) to make sure everything is fine before building
  • Build binaries for Windows, Mac, and Linux
  • Upload each binary to the release
  • Publish the release

Other Solutions

On top of this, I could look into tools like Covector to automate the release process to a point. Not set in stone with anything yet but it could be useful to build some system for publishing rust binaries so I can use it on other applications I build in the future.

As well, this may be useful for libraries as well of instead of building binaries I can create a semi-automated cargo publish workflow for releases of any crates I decide to develop.

Add Apple Silicon builds to CI

Apple Silicon builds (cargo target aarch64-apple-darwin) seems to require MacOS Big Sur which is only available at the moment as a private preview on GitHub Actions, so until then I will not be able to build Apple Silicon builds in CI until that is opened to the public.

That said, once things are resolved there, I may ship a universal binary for MacOS so you can download one binary and it can work on both Intel and Apple Silicon Macs.

output the deploy url

When uploading as part of a non-production build, it would be helpful to somehow return the url of the preview that is created. That url can then be included as a comment on a PR. This makes it easier to review dependency updates that are opened through a bot.

Perf Testing

Take large Netlify sites (100 files, 1k files, 10k files) and benchmark this CLI against the JS CLI to compare how each performs.

Clean up debug statements for file hashes

For large sites, listing out the files & hashes to be deployed is going to be taxing and probably isn't necessary to use so I will want to remove the various dbg! / println! calls I currently have in the program.

Duplicate files are not uploaded

I've modified the program pretty substantially but I'm pretty sure the issue is present in the version in this repo.

The hashes BiMap is unique for both the right and left values; if two files have the same contents the second will overwrite the first because the hashes (right value in the bimap) are the same. The list of files sent to netlify is then generated from hashes and thus won't include multiple files with the same content.

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.