actions icon indicating copy to clipboard operation
actions copied to clipboard

🎉 Updated CLI action for everyone

Open South-Paw opened this issue 2 years ago • 1 comments

👋

I got a bit sick of the netlify/actions/cli consuming an extra 30-50s of runner time on GitHub actions due to it using a Docker layer and requiring that to be built on every run - which by my estimate was resulting in an average deploy time of ~1m 30s when it was used in a workflow.

I made South-Paw/action-netlify-cli a few months back and just figured I should probably share it here too so others can find it and save themselves some runner minutes as well. It usually takes about 30 seconds to run and doesn't have a Docker layer 👍

I've also tried to improve the documentation in the README and ensure the action outputs are consistent and expected.

I hope that by sharing this here, other developers who were looking for an alternative are able to find it 😄

South-Paw avatar Feb 09 '23 22:02 South-Paw

I was using this action for some time until a breaking change where I saw I was not able to specify the version.

I just threw away Netlify action because a simple npx usage would work:

      - name: Deploy to Netlify
        env:
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
        run: npx netlify-cli deploy ...

Note you could also add it as a dependency and create a custom script to do something like npm run my-custom-script (instead of using npx).

Hope it helps 👍

sneko avatar Nov 22 '23 19:11 sneko