Skip to content

Commit

Permalink
Prepare website previews (#3)
Browse files Browse the repository at this point in the history
For theia-website, we switch from legacy gh-pages to the workflow based
approach.

To deploy previews for theia-website, we create a dedicated repository
called theia-website-previews.

In this repository, a workflow will create a directory for each PR that
is opened against theia-website. When the PR is closed, the respective
directory will be removed again via workflow.

Signed-off-by: Olaf Lessenich <[email protected]>
  • Loading branch information
xai authored Mar 29, 2024
1 parent 0b14449 commit 49bdce7
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions otterdog/eclipse-theia.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,7 @@ orgs.newOrg('eclipse-theia') {
default_branch: "master",
delete_branch_on_merge: false,
description: "Theia's Website",
gh_pages_build_type: "legacy",
gh_pages_source_branch: "gh-pages",
gh_pages_source_path: "/",
gh_pages_build_type: "workflow",
has_discussions: true,
homepage: "https://theia-ide.org/",
secret_scanning: "disabled",
Expand Down Expand Up @@ -427,6 +425,26 @@ orgs.newOrg('eclipse-theia') {
],
deployment_branch_policy: "selected",
},
orgs.newEnvironment('pull-request-preview'),
],
},
orgs.newRepo('theia-website-previews') {
default_branch: "previews",
description: "Hosting PR previews for theia-website",
gh_pages_build_type: "legacy",
gh_pages_source_branch: "previews",
gh_pages_source_path: "/",
has_issues: false,
has_projects: false,
has_wiki: false,
web_commit_signoff_required: false,
environments: [
orgs.newEnvironment('github-pages') {
branch_policies+: [
"previews"
],
deployment_branch_policy: "selected",
},
],
},
orgs.newRepo('theia-website-publish') {
Expand Down

0 comments on commit 49bdce7

Please sign in to comment.