git branch -D auto ①
git remote update upstream ②
git checkout -b auto upstream/master ③
git push -f origin auto:auto ④
Note: the above does not need to be done each time, but it is safer to do it each time.
-
Update SD Template with script "update-templates"
https://github.com/Rasbats/shipdriver_pi/blob/master/UPDATE_TEMPLATES.md
See "2. Run the script" https://github.com/Rasbats/shipdriver_pi/blob/master/UPDATE_TEMPLATES.md#2-run-script
First update the update-templates script using the link above for bootstrapping.
For example to update using a tag when in Windows OS
"C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2
OR
-
At the bash prompt bash ./update-templates -l <---lower case "l" to get the version list.
-
At the bash prompt pick recent version bash ./update-templates sd3.2.4+beta3 wait.
-
Add and commit any files from git status.
-
At the bash prompt repeat the command bash ./update-templates sd3.2.4+beta3 wait, there should be a long list of rm files and adding files.
-
See if there are any files to commit with git status. If so do that.
-
Find the local file Plugin.Cmake and change the version number.
-
git add Plugin.Cmake then git commit -am "[new version number]"
-
Build Locally and test
-
git tag v[new version number]
-
Setup the plugins auto branch
-
git push --tags origin master
https://opencpn-manuals.github.io/main/AlternativeWorkflow/usage.html
Read the Install.md file for complete instructions.
Run the batch files locally, creating the tarball in the build directory.
-
From Bash Prompt started with administrative rights.
set PATH=C:/ProgramData/chocolatey/bin;C:/Windows/system32;C:/Windows
./buildwin/win_deps.bat
rm -rf build; mkdir build; cd build
cmake -T v141_xp -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cmake --build . --target tarball --config RelWithDebInfo
Deploy to Beta Branch in your Cloudsmith Repository
$ git add <files changed>
$ git commit -am "1.3.4-beta")
$ git tag v1.3.4-beta
$ git push --tags origin master:master
Deploy to Prod Branch
$ git commit -am "1.3.4")
$ git tag v1.3.4
$ git push --tags origin master:master
Tagged Deployment
$ git commit -am "my last changes")
$ git tag v[new version number]
$ git push --tags origin master:master
- The last step pushes the tag and the branch in one step,
- thus avoiding the problem of deployment being split between “prod” and “beta”.
- It's also much simpler. (All tags from your local clone are pushed to origin.
- If this is a problem they can also be removed.)
Normal Sequential Process after the plugin is setup and running.
See Original Thread: Rasbats/shipdriver_pi#406
See https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/GithubPreps.html
For builds targeting the master catalog: drop possible existing auto branch and create a new on top of master:
Note: the above does not need to be done each time, but it is safer to do it each time.
Update SD Template with script "update-templates"
https://github.com/Rasbats/shipdriver_pi/blob/master/UPDATE_TEMPLATES.md
See "2. Run the script" https://github.com/Rasbats/shipdriver_pi/blob/master/UPDATE_TEMPLATES.md#2-run-script
First update the update-templates script using the link above for bootstrapping.
For example to update using a tag when in Windows OS
"C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2OR
At the bash prompt
bash ./update-templates -l<---lower case "l" to get the version list.At the bash prompt pick recent version
bash ./update-templates sd3.2.4+beta3wait.Add and commit any files from git status.
At the bash prompt repeat the command
bash ./update-templates sd3.2.4+beta3wait, there should be a long list of rm files and adding files.See if there are any files to commit with git status. If so do that.
Find the local file Plugin.Cmake and change the version number.
git add Plugin.Cmakethengit commit -am "[new version number]"Build Locally and test
git tag v[new version number]Setup the plugins auto branch
git push --tags origin master
https://opencpn-manuals.github.io/main/AlternativeWorkflow/usage.html
Read the Install.md file for complete instructions.
Run the batch files locally, creating the tarball in the build directory.
From Bash Prompt started with administrative rights.
https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/GitHub.html#_building_the_plugin
First create a tagged beta build, using the tag (in this case) "v1.3.19.beta" then a tagged build.
To DEPLOY using Tags
Check the Metadata that has been automatically pushed to plugins/auto branch
https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/GitHub.html#_check_the_metadata_push
Automatic steps taken during the build and push to opencpn/plugins/master
https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/Catalog-Github-Integration.html#_during_the_build
Cleaning up old metadata https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/Catalog-Github-Integration.html#_cleaning_up_old_metadata
Making a Pull request. https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/Catalog-Github-Integration.html#make-PR
If metadata files are missing, check the "builder" logs. Usually it is a bad auth key.