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

Enable Continuous Delivery of the preview website from the "master" branch + Bulk cleanup #25

Merged
merged 44 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8773203
Create deploy-preview.yaml
oleg-nenashev Apr 6, 2023
702c00b
Create _config_preview_public.yml
oleg-nenashev Apr 6, 2023
37bc9bd
Switch to the recommended deployment flow
oleg-nenashev Apr 6, 2023
56ab883
Test Preview Jekyll Deployment
oleg-nenashev Apr 6, 2023
4c2eb59
Update _config_preview_public.yml
oleg-nenashev Apr 6, 2023
8b29897
Update deploy-preview.yaml
oleg-nenashev Apr 6, 2023
3e59197
Apply the Ruby Gems patch
oleg-nenashev Apr 6, 2023
78534af
Ruby 2 ragequit
oleg-nenashev Apr 6, 2023
6e63f9b
Update _config_preview_public.yml
oleg-nenashev Apr 6, 2023
4715152
Update deploy-preview.yaml
oleg-nenashev Apr 6, 2023
a99c0e2
Fix absolute links to support baseUrl
oleg-nenashev Apr 6, 2023
bd8835d
More base path fixes
oleg-nenashev Apr 6, 2023
ebc7c74
Fix the variable name
oleg-nenashev Apr 6, 2023
de3682c
Test broken(?) base path
oleg-nenashev Apr 6, 2023
0c1cb03
More Debug...
oleg-nenashev Apr 6, 2023
d987d77
Use modern Jekyll referencing
oleg-nenashev Apr 6, 2023
658348c
Cleanup base_path usages except domains
oleg-nenashev Apr 6, 2023
3c8d65a
Fix typos in Main
oleg-nenashev Apr 6, 2023
fb3b73e
Relocate files to follow the SASS structure in Jekyll
oleg-nenashev Apr 6, 2023
1a91d51
Define the SASS directory
oleg-nenashev Apr 6, 2023
e2a728f
Fix SCSS rendering
oleg-nenashev Apr 6, 2023
9f244d9
Enable runtime builds on Windows
oleg-nenashev Apr 6, 2023
66f23c7
Wipe Gems cache
oleg-nenashev Apr 6, 2023
e75de14
Remove WDM
oleg-nenashev Apr 6, 2023
6a1274a
Rewind the gem cache again
oleg-nenashev Apr 6, 2023
892f892
Update Bundler
oleg-nenashev Apr 6, 2023
f9dbbd1
Cache!
oleg-nenashev Apr 6, 2023
042bf18
Pin Bundler version in the GitHub Action
oleg-nenashev Apr 6, 2023
ee5433b
Bulk dependencies update
oleg-nenashev Apr 6, 2023
e5a0e79
Add Linux as a supported build platform
oleg-nenashev Apr 6, 2023
9d41b01
Just trying to disable deployments
oleg-nenashev Apr 6, 2023
ab384b5
Give up and disable caching
oleg-nenashev Apr 6, 2023
0ea48f4
Install Jekyll manually
oleg-nenashev Apr 6, 2023
ea37c9f
Update RubyGems
oleg-nenashev Apr 6, 2023
69db7e1
Use bundler to install deps
oleg-nenashev Apr 7, 2023
0fcaec0
Restore Vendor _sass files that are not pulled automatically at the m…
oleg-nenashev Apr 7, 2023
e2bb763
Cleanup base_url in the navigation bar
oleg-nenashev Apr 7, 2023
4a4db80
Fix navbar and docs referencing
oleg-nenashev Apr 7, 2023
89837a5
Add HTML validator to the pipeline
oleg-nenashev Apr 7, 2023
f4151f7
Allow serving documentation from non-root URL
oleg-nenashev Apr 7, 2023
38c8daf
Cleanup more dead links
oleg-nenashev Apr 7, 2023
c5efee5
Disable HTML enforcer for now
oleg-nenashev Apr 7, 2023
2a736b7
Allow deploying for the 2.0 branch
oleg-nenashev Apr 11, 2023
8a8fbbb
Merge branch 'master' into cd-public-preview
oleg-nenashev Apr 19, 2023
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
69 changes: 69 additions & 0 deletions .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Deploy Jekyll site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master", "cd-public-preview", "website-2.0"]

# Allows you to run this workflow manually from the Actions tab
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: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: '2.7.6' # Not needed with a .ruby-version file
bundler: '2.4.10'
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
cache-version: 3 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Update RubyGems and Co
run: gem update --system
- name: Install Ruby Bundles
run: bundle install
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --config '_config_preview_public.yml' --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: development
# TODO: Uncomment when cleaned up (if ever)
# - name: Validate HTML and links
# uses: anishathalye/proof-html@v2
# with:
# directory: ./_site
# enforce_https: false
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ main.min.js
main.css
.idea/

vendor
/vendor

**/.DS_Store
121 changes: 52 additions & 69 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,134 +1,116 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.2.3)
activesupport (7.0.4.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.3)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.1.9)
concurrent-ruby (1.2.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
faraday (2.7.4)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday-net_http (3.0.2)
ffi (1.15.5)
ffi (1.15.5-x64-mingw32)
forwardable-extended (2.6.0)
gemoji (3.0.1)
html-pipeline (2.14.0)
gemoji (4.1.0)
google-protobuf (3.22.2-x64-mingw32)
google-protobuf (3.22.2-x86_64-linux)
html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.8.0)
i18n (1.10.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.2.2)
jekyll (4.3.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9)
rouge (~> 3.0)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-feed (0.16.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.12.0)
gemoji (~> 3.0)
jemoji (0.13.0)
gemoji (>= 3, < 5)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
json (1.8.6)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.1)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.8.0)
minitest (5.15.0)
multipart-post (2.1.1)
nokogiri (1.13.3)
mini_portile2 (~> 2.8.0)
minitest (5.18.0)
nokogiri (1.14.2-x64-mingw32)
racc (~> 1.4)
nokogiri (1.13.3-x64-mingw32)
nokogiri (1.14.2-x86_64-linux)
racc (~> 1.4)
octokit (4.22.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.6.0)
rb-fsevent (0.11.1)
public_suffix (5.0.1)
racc (1.6.2)
rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.28.0)
rouge (4.1.0)
ruby2_keywords (0.0.5)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sassc (2.4.0-x64-mingw32)
ffi (~> 1.9)
sawyer (0.8.2)
sass-embedded (1.60.0)
google-protobuf (~> 3.21)
rake (>= 10.0.0)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
tzinfo (2.0.4)
faraday (>= 0.17.3, < 3)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (1.8.0)
webrick (1.7.0)
unicode-display_width (2.4.2)
wdm (0.1.1)
webrick (1.8.1)

PLATFORMS
ruby
x64-mingw32
x86_64-linux

DEPENDENCIES
jekyll (~> 4)
Expand All @@ -140,7 +122,8 @@ DEPENDENCIES
jemoji
json (~> 1.8.6)
nokogiri (>= 1.7.2)
wdm (~> 0.1.0)
webrick (~> 1.7)

BUNDLED WITH
2.3.8
2.4.10
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ keep_files:
encoding: "utf-8"
markdown_ext: "markdown,mkdown,mkdn,mkd,md"

sass:
sass_dir: _sass

# Conversion
markdown: kramdown
highlighter: rouge
Expand Down
Loading