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

4 migrate site to GitHub pages #5

Merged
merged 6 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: build_deploy

on:
push:
branches:
- main
pull_request:
repository_dispatch:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- name: Checkout
uses: actions/checkout@v3

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1

- name: Update gems
run: |
gem install bundler
bundle install --jobs 4 --retry 3

- name: Setup Pages
id: pages
uses: actions/configure-pages@v3

- name: Build with Jekyll
run: |
bundle exec jekyll build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ _software/_*_repo
_specs/*/.git
_specs/*/docs
parent-hub/*

parent-hub
_site/
.sass-cache
.jekyll-metadata
.jekyll-cache
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

28 changes: 25 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,44 @@
source "https://rubygems.org"

gem "jekyll", "~> 4.1"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll"

gem "jekyll-theme-open-project", "~> 2.1.10"
# This is the default theme for new Jekyll sites. You may change this to anything you like.

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
gem "jekyll-theme-open-project"
# gem "jekyll-theme-open-project", path: "~/src/jekyll-theme-open-project"

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-seo-tag"
gem "jekyll-sitemap"
gem "jekyll-data"
gem "jekyll-asciidoc"
gem "jekyll-redirect-from"
gem "git"
gem "jekyll-theme-open-project-helpers", "~> 2.1.8"
gem "jekyll-theme-open-project-helpers"
gem "kramdown-parser-gfm"
gem "kramdown-syntax-coderay"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

# For testing generated HTML pages and links
gem "rake"
gem "html-proofer"

gem "webrick", "~> 1.7"
55 changes: 0 additions & 55 deletions Jenkinsfile

This file was deleted.