mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
fix: Add Gemfile and fix Jekyll build workflow
This commit is contained in:
parent
9cebf53f19
commit
5a81ebab1e
3 changed files with 55 additions and 4 deletions
20
.github/workflows/pages.yml
vendored
20
.github/workflows/pages.yml
vendored
|
|
@ -16,24 +16,36 @@ concurrency:
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# Build job
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch all history for proper git info
|
||||||
|
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.1'
|
||||||
|
bundler-cache: true # runs 'bundle install' and caches gems
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
|
id: pages
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v4
|
||||||
|
|
||||||
- name: Build with Jekyll
|
- name: Build with Jekyll
|
||||||
uses: actions/jekyll-build-pages@v1
|
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
||||||
with:
|
env:
|
||||||
source: ./
|
JEKYLL_ENV: production
|
||||||
destination: ./_site
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: ./_site
|
||||||
|
|
||||||
|
# Deployment job
|
||||||
deploy:
|
deploy:
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
|
|
|
||||||
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -18,5 +18,13 @@ vite.config.ts.*
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
.env
|
.env
|
||||||
|
|
||||||
|
# Jekyll / GitHub Pages
|
||||||
|
/.bundle/
|
||||||
|
/vendor/
|
||||||
|
/_site/
|
||||||
|
/.jekyll-cache/
|
||||||
|
/.jekyll-metadata
|
||||||
|
Gemfile.lock
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
31
Gemfile
Normal file
31
Gemfile
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
# GitHub Pages gem includes Jekyll and common plugins
|
||||||
|
gem "github-pages", "~> 231", group: :jekyll_plugins
|
||||||
|
|
||||||
|
# Additional recommended plugins
|
||||||
|
group :jekyll_plugins do
|
||||||
|
gem "jekyll-feed", "~> 0.12"
|
||||||
|
gem "jekyll-seo-tag", "~> 2.8"
|
||||||
|
gem "jekyll-sitemap", "~> 1.4"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
|
# and associated library.
|
||||||
|
platforms :mingw, :x64_mingw, :mswin, :jruby do
|
||||||
|
gem "tzinfo", ">= 1", "< 3"
|
||||||
|
gem "tzinfo-data"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Performance-booster for watching directories on Windows
|
||||||
|
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
|
||||||
|
|
||||||
|
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
|
||||||
|
# do not have a Java counterpart.
|
||||||
|
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
|
||||||
|
|
||||||
|
# kramdown v2 ships without the gfm parser by default
|
||||||
|
gem "kramdown-parser-gfm"
|
||||||
|
|
||||||
|
# webrick is no longer bundled with Ruby 3.0+
|
||||||
|
gem "webrick", "~> 1.8"
|
||||||
Loading…
Reference in a new issue