Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Updated CLI action for everyone #66

Open
South-Paw opened this issue Feb 9, 2023 · 1 comment
Open

🎉 Updated CLI action for everyone #66

South-Paw opened this issue Feb 9, 2023 · 1 comment

Comments

@South-Paw
Copy link

South-Paw commented Feb 9, 2023

👋

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 South-Paw changed the title Updated CLI action for everyone 🎉 Updated CLI action for everyone Feb 9, 2023
@sneko
Copy link

sneko commented Nov 22, 2023

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants