I’m creating a user page with github pages. Therefore I have to put the build files to the master branch and develop the website in my “dev” branch.
I would like to know if there is a ready to use action that triggers whenever I push code in my dev branch. Then it would remove all the files in the master branch run a npm run build command in the dev branch. After that it copies only the build files from the dist folder into the master branch.
Currently I’m doing this on my own and it would be really awesome if there is something I can use to automate this. Yes, I could do this on my own with a shell script and handle the two branches with some git, npm and copy commands but maybe there already is an action I can use for this?