Giter Site home page Giter Site logo

south-paw / action-netlify-deploy Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 10.0 4.19 MB

๐Ÿ™Œ Netlify deployments via GitHub actions

License: MIT License

JavaScript 2.27% TypeScript 97.73%
actions deploy draft github-action github-actions github-deployment github-environments netlify

action-netlify-deploy's People

Contributors

south-paw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

action-netlify-deploy's Issues

`deploy` has been removed from `netlify/[email protected]`

Looks like the Netlify team have removed deploy from the netlify/js-client package and put it into their netlify/cli which doesn't appear at a glance to be usable programically.

  • Can netlify/cli be imported and its internal deploy method called in the action?
    • Probably will blow the size of the action out way bigger than it needs to be
  • Should the deploy functionality be re-implemented into this action?
    • Would be a pain to keep in sync with other packages
  • Should a new package be created that re-implements the deploy function via wrapping the netlify/js-client somehow

Hebilicious improvements

@Hebilicious, you don't have issues open on your repo, but seems like you made some great improvements to the action (awesome job!)

Feel free to propose a PR back here to merge them into this repo ๐Ÿ‘

Drafts are Failing

I'm using this script given in the Readme. My production build works fine but the draft releases don't seem to work. It fails on the deployment step.

image

Here is my workflow script if you need to glance over.

On pull requests, the Deploy draft to Netlify step is failing. After I merge those failed PRs (forcefully), it works on production. The secrets NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID are already present, because of which the production build isn't failing. But what's going on with the draft releases? It says it can't find the auth token. It would be awesome if you could help me out here.

Replacement action: South-Paw/action-netlify-cli

Finally got around to making a replacement action for this one: South-Paw/action-netlify-cli

  • ๐ŸŽ It's super speedy (~30 second deployments)
  • Utilizes netlify-cli under the hood (so #21 isn't an issue)
  • Works with GitHub deployment environments ๐ŸŽ‰
  • Can be combined with other actions such as commit-comment or comment-pull-request to achieve same functionality as this action
  • Quick and easy to migrate ๐Ÿ‘

My intention is to archive this action in the near future. Please raise issues on the new project if you need a hand ๐Ÿ˜ƒ

Minimize outdated deploy comments on new build

Description

When the Github action is going to comment on a new PR, it would be nice to see it check if there are any other deploy comments for the same Netlify Site ID and if they are older than the current one the action should minimize those comments and mark them as outdated.

Notes:

  • This might require adding some hidden metadata to each comment (using HTML comment tags? <!-- -->) such as the time of build and the Netlify Site ID so that the action can compare comments easily.
  • Could probably simply use the comments time to see if it's older ๐Ÿ˜„
  • I don't think this applies to commits, only PRs
  • Github v4 API has minimizeComment

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.