eclipse-tractusx / .eclipsefdn

Repository to host configurations related to the Eclipse Foundation.
https://eclipse-tractusx.github.io/.eclipsefdn/
1 stars 15 forks source link

Enable GitHub pages for `sig-release` repo #20

Closed SebastianBezold closed 1 year ago

SebastianBezold commented 1 year ago

Description

This PR enables GitHub pages for the sig-release repo. Settings are "copied" from other repos with enabled GitHub pages

We are currently building automation, that runs checks on our org and compiles the results to a statically generated dashboard. This dashboard should be hosted via GitHub pages.

FYI: @Siegfriedk

github-actions[bot] commented 1 year ago
Diff for 8a2ca605c7af0bc408776c673e702a2fabddd9c0: ```diff Printing local diff for configuration at '/home/runner/work/.eclipsefdn/.eclipsefdn/otterdog-configs/otterdog.json' Actions are indicated with the following symbols: + create ! modify ! forced update - delete Organization eclipse-tractusx[id=eclipse-tractusx] there have been 37 validation infos, enable verbose output with '-v' to to display them. ! repository[name="sig-release"] { ! gh_pages_build_type = "disabled" -> "legacy" ! gh_pages_source_branch = null -> "gh-pages" ! gh_pages_source_path = "/" -> "/" ! } + add environment[name="github-pages", repository="sig-release"] { + branch_policies = [ + "gh-pages" + ], + deployment_branch_policy = "selected" + name = "github-pages" + reviewers = [] + wait_timer = "0" + } Plan: 1 to add, 3 to change, 0 to delete. ``` ```diff Showing diff to a canonical version of the configuration at '/home/runner/work/.eclipsefdn/.eclipsefdn/otterdog-configs/otterdog.json' Organization eclipse-tractusx[id=eclipse-tractusx] --- original +++ canonical @@ -420,17 +420,13 @@ web_commit_signoff_required: false } orgs.newRepo('puris-backend') { - allow_update_branch: false archived: true description: "puris-backend" - secret_scanning_push_protection: "disabled" web_commit_signoff_required: false } orgs.newRepo('puris-frontend') { - allow_update_branch: false archived: true description: "puris-frontend" - secret_scanning_push_protection: "disabled" web_commit_signoff_required: false } orgs.newRepo('sd-factory') { @@ -447,12 +443,12 @@ orgs.newRepo('sig-release') { allow_update_branch: false environments: [ - orgs.newEnvironment('github-pages') { - branch_policies+: [ - "gh-pages" - ] - deployment_branch_policy: "selected" - } + orgs.newEnvironment('github-pages') { + branch_policies+: [ + "gh-pages" + ] + deployment_branch_policy: "selected" + } ] gh_pages_build_type: "legacy" gh_pages_source_branch: "gh-pages" ```
netomi commented 1 year ago

May I suggest to also update the homepage property of the repo to https://eclipse-tractusx.github.io/sig-release so that there is also a link to the GH Pages site in the repo.

SebastianBezold commented 1 year ago

May I suggest to also update the homepage property of the repo to https://eclipse-tractusx.github.io/sig-release so that there is also a link to the GH Pages site in the repo.

Oh yes good hint! Added to the PR

github-actions[bot] commented 1 year ago
Diff for adf3292f181df0bb206d03b3af63da1cac00c277: ```diff Printing local diff for configuration at '/home/runner/work/.eclipsefdn/.eclipsefdn/otterdog-configs/otterdog.json' Actions are indicated with the following symbols: + create ! modify ! forced update - delete Organization eclipse-tractusx[id=eclipse-tractusx] there have been 37 validation infos, enable verbose output with '-v' to to display them. ! repository[name="sig-release"] { ! gh_pages_build_type = "disabled" -> "legacy" ! gh_pages_source_branch = null -> "gh-pages" ! gh_pages_source_path = "/" -> "/" ! homepage = null -> "https://eclipse-tractusx.github.io/sig-release" ! } + add environment[name="github-pages", repository="sig-release"] { + branch_policies = [ + "gh-pages" + ], + deployment_branch_policy = "selected" + name = "github-pages" + reviewers = [] + wait_timer = "0" + } Plan: 1 to add, 4 to change, 0 to delete. ``` ```diff Showing diff to a canonical version of the configuration at '/home/runner/work/.eclipsefdn/.eclipsefdn/otterdog-configs/otterdog.json' Organization eclipse-tractusx[id=eclipse-tractusx] --- original +++ canonical @@ -420,17 +420,13 @@ web_commit_signoff_required: false } orgs.newRepo('puris-backend') { - allow_update_branch: false archived: true description: "puris-backend" - secret_scanning_push_protection: "disabled" web_commit_signoff_required: false } orgs.newRepo('puris-frontend') { - allow_update_branch: false archived: true description: "puris-frontend" - secret_scanning_push_protection: "disabled" web_commit_signoff_required: false } orgs.newRepo('sd-factory') { @@ -447,12 +443,12 @@ orgs.newRepo('sig-release') { allow_update_branch: false environments: [ - orgs.newEnvironment('github-pages') { - branch_policies+: [ - "gh-pages" - ] - deployment_branch_policy: "selected" - } + orgs.newEnvironment('github-pages') { + branch_policies+: [ + "gh-pages" + ] + deployment_branch_policy: "selected" + } ] gh_pages_build_type: "legacy" gh_pages_source_branch: "gh-pages" ```
netomi commented 1 year ago

change has been applied, once you push something to a gh-pages branch the page should be deployed.