Skip to content
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

Podcast microsite build and deployment using GitHub Pages and Actions #3

Merged
merged 6 commits into from
Jun 15, 2022

Conversation

mcleo-d
Copy link

@mcleo-d mcleo-d commented Jun 15, 2022

Description

The following files and updates have been applied to the repo to build and deploy the lp-podcast project using GitHub actions and pages.

Deployment Action

.github/workflows/deploy.yml

When a pull request is merged to the main branch or someone pushes to the main branch directly, it will be built and deployed to the gh-pages branch. After that, the new build output will be served on the GitHub Pages site. This job is called deploy.

Test Build Action

.github/workflows/test-deploy.yml

When a new pull request is made to main, the action ensures the site builds successfully, without actually deploying. This job is called test-deploy.

Docusaurus Configuration

The following attributes have been added to specify the url, projectName,organizationName, deploymentBranch, and trailingSlash config of the microsite.

website/docusaurus.config.js

module.exports = { 
  url: 'https://linuxfoundation.github.io/lf-podcast',
  baseUrl: '/',
  projectName: 'lf-podcast',
  organizationName: 'linuxfoundation',
  deploymentBranch: 'gh-pages',
  trailingSlash: false,

Disable Jekyll Parsing

website/static/.nojekyll

By default, GitHub Pages runs published files through Jekyll. Since Jekyll will discard any files that begin with _, it is recommended that you disable Jekyll by adding an empty file named .nojekyll file to your static directory.

@mcleo-d mcleo-d force-pushed the pages-setup branch 2 times, most recently from e032c77 to 2a3511d Compare June 15, 2022 18:08
James McLeod and others added 6 commits June 15, 2022 20:52
Signed-off-by: James McLeod <james.mcleod@finos.org>
Signed-off-by: SeniorStoryteller <66965127+SeniorStoryteller@users.noreply.github.com>
Signed-off-by: James McLeod <james.mcleod@finos.org>
Signed-off-by: James McLeod <james.mcleod@finos.org>
Signed-off-by: James McLeod <james.mcleod@finos.org>
Signed-off-by: James McLeod <james.mcleod@finos.org>
Signed-off-by: James McLeod <james.mcleod@finos.org>
@mcleo-d mcleo-d merged commit b2fe556 into main Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants