You can use a conditional as part of the workflow *if: github.ref == 'refs/heads/master'* or *if: github.ref == 'refs/heads/develop'* to perform different actions depending on the branch (different branches for different environments). And you can set env variables in the settings section of the repo or secrets with different names for each environment.
@khaledrakhisi2142 жыл бұрын
how can I exclude "node_modules" folder under the "with:" command ?
@romimaximus2 жыл бұрын
Hey Pragmatic !! awesome tutorial !!, you think if i use the same deploy steps that you did, ... but to deploy to another clouds like Heruku, Netlify or Digital Ocean, it will work ?