We need a gitlab-ci-yml file that can will build our foundationpress based theme and afterwards autodeploy this. All of the variables in the file should be places in $VARIABLES that we can enter in Gitlab.
Step 1: Build
Our 'manual' workflow;
1. First time we run a command to run node and bower dependencies;
- npm install
This is run in the following directory; /wp-content/themes/[theme_name]-dev
2. Afterwards to create a new production package of the theme we run;
- gulp package -- production
This theme is then outputted to /wp-content/themes/[theme_name]-dev/production/[theme_name].zip
This then has to be extracted and moved to /wp-content/themes/
Step 2: Deploy
Pushing the (changes) to an sFTP server.
The following files should be ignored;
- [url removed, login to view]
Nice project. I am currently working with Gitlab, I even had a small contribution accepted in this last version 8.14. Are you using [login to view URL] Well, looking forward to work in this project. Regards