I would like to create a website with VuePress and deploy it with Github Pages. Luckily VuePress is able to generate a dist folder with all the required .html files. This folder is located at (from root) ./docs/.vuepress/dist so I could take all the files from that folder and deploy them.
Unfortunately Github Pages can only deploy files from the master branch
https://help.github.com/en/articles/configuring-a-publishing-source-for-github-pages
and it is not possible to configure a specific folder for the build files. I thought about the following solution:
Create a "dev" branch next to the master branch and keep the files from the dist folder in the master branch and have the project in the dev branch.
I started learning using Git on the terminal and created a publish.sh file to commit and push the project to the Github repository.
git add *
git commit -m "."
git push origin master
How can I enhance my shell script to do the following (if possible)
git add *
git commit -m "."
git push -- all files -- origin dev
git push -- all files of the dist folder -- origin master