Skip to content

Commit

Permalink
Use GitHub Pages for hosting (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki authored Apr 9, 2024
1 parent 48fd57b commit cc3cdd4
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 5 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/deply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy Jekyll site to Pages

on:
push:
branches: ["prod"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Link Submodules
run: |
mkdir _data/commands _includes/commands
ln -s $(pwd)/_submodules/valkey/src/commands $(pwd)/_data/commands/latest
ln -s $(pwd)/_submodules/valkey-doc/commands $(pwd)/_includes/commands/latest
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '3.1'
bundler-cache: true
cache-version: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

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@v4
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ GEM
forwardable-extended (2.6.0)
google-protobuf (3.25.3-arm64-darwin)
google-protobuf (3.25.3-x86_64-darwin)
google-protobuf (3.25.3-x86_64-linux)
http_parser.rb (0.8.0)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
Expand All @@ -34,7 +35,6 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-datapage-generator (1.4.0)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-last-modified-at (1.3.0)
Expand Down Expand Up @@ -68,17 +68,17 @@ GEM
forwardable-extended (~> 2.6)
posix-spawn (0.3.15)
public_suffix (5.0.4)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (3.26.0)
ruby-link-checker (0.2.0)
safe_yaml (1.0.5)
sass-embedded (1.69.5-arm64-darwin)
google-protobuf (~> 3.23)
sass-embedded (1.69.5-x86_64-darwin)
sass-embedded (1.69.5)
google-protobuf (~> 3.23)
rake (>= 13.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
typhoeus (1.4.1)
Expand All @@ -90,10 +90,10 @@ PLATFORMS
arm64-darwin-22
x86_64-darwin-19
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
jekyll (~> 4.3.2)
jekyll-datapage-generator
jekyll-feed (~> 0.12)
jekyll-last-modified-at
jekyll-paginate
Expand Down

0 comments on commit cc3cdd4

Please sign in to comment.