-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to gh-actions / deploy updatesite to different folders in gh-pages #436
Comments
I have created a basic action now: https://github.com/cucumber/cucumber-eclipse/actions I think the first steps would be:
|
@mattwynne I have tried to setup multiple branches in https://github.com/cucumber/cucumber-eclipse/blob/main/.github/workflows/maven.yml is this the right way or should I place a maven.yml in each branch that should be build? |
@qvdk FYI, another action required would be to disable the travis-ci jobs for this, is this simply deleting the .travis.yml file? |
Yes I confirm |
As I understand it, if you have a workflow like this in your |
@mattwynne I have created:
can you give a hint how this is bet archived, given that only that folder must always be updated by the workflow? I think manually it would be something like the following steps:
but maybe there are smarter ways than doing everything step by step with shell commands? |
@laeubi do you mean that, once the If so, we're on the right lines. I think you need an action something like this: - run: |
cp -R cucumber.eclipse.p2updatesite/target/repository/ {{ runner.temp }}/output
git checkout gh-pages
rm -rf update-site/{{ github.ref }}
cp -R {{ runner.temp }}/output update-site/{{ github.ref }}
git add --update .
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git commit -m "Add latest update-site for version {{ github.ref }}"
git push Can you give that a try? |
You might need to change the |
@mattwynne thanks, thats correct the directory contains the data of the update-site. I'll give it a try. |
@mattwynne I have updated the code but it seems the add does not work and complains about nothing was added. Can you take a look if I'm missing something? I have just modfied your aproach a bit by checkout both branches in different directories, and currently do not delete any old data. |
I think I found the issue, I simply removed the |
For the v.0 and v1. the update site is there and automatically updated: |
The new update-site hosting containing all versions will be https://cucumber.github.io/cucumber-eclipse/update-site/ Currently there are
that looks a bit nicer, @qvdk @mattwynne can anyone help migrating the more modern design to the https://cucumber.github.io/cucumber-eclipse/update-site/ ? If that's done we should remove the content from the other sites and place a link to the new site there. |
The current main branch is deployed now to https://github.com/cucumber/cucumber-eclipse/tree/gh-pages/update-site/main and available as https://cucumber.github.io/cucumber-eclipse/update-site/main/ for usage inside eclipse. The main is not included in the composite, so users will need to add this explicitly if desired as an extra update-site. |
We are currently using Travis CI, but the goal would be to migrate this to gtihub actions.
As part of this migration, the deployment should be changed so that different branches are deployed to different folders (instead of different gh-pages) so we can have a better user-experience.
The structure should be as follows:
where each branch is a different build.
The text was updated successfully, but these errors were encountered: