action-netlify-deploy | Netlify deployments via GitHub actions | Continuous Deployment library
kandi X-RAY | action-netlify-deploy Summary
kandi X-RAY | action-netlify-deploy Summary
A Github action that deploys a build directory to Netlify. It can be configured to comment on the commit or PR with the deploy URL or deploy with GitHub environments, deploy draft builds, deploy Netlify functions and use custom Netlify configs.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of action-netlify-deploy
action-netlify-deploy Key Features
action-netlify-deploy Examples and Code Snippets
Community Discussions
Trending Discussions on action-netlify-deploy
QUESTION
So I have the following workflow and its working perfectly. I now want to enhance it and when I am doing a PR to master, I want to set NETLIFY_DEPLOY_TO_PROD: false
instead of it being true? Do I have to duplicate this all in a new workflow, or could do some inline if check of github.event_name === push ? true : false
ANSWER
Answered 2020-Nov-05 at 15:45You could set an environment variable to indicate if deploy to prod should happen, and change it depending on the event name:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install action-netlify-deploy
github-token which is usually ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token this is a personal access token created from your Netlify account ⚠️ This should be stored as a Github secret in your repo
netlify-site-id this is the API ID of your Netlify site To find this, go to your site's settings and in the "site information" copy the API ID field
build-dir this is where your site build outputs to relative to the root of your projects folder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page