From cc3cdd445578de3915950f1df397175215331007 Mon Sep 17 00:00:00 2001 From: Miki Date: Tue, 9 Apr 2024 13:16:25 -0700 Subject: [PATCH] Use GitHub Pages for hosting (#17) Signed-off-by: Miki --- .github/workflows/deply.yml | 55 +++++++++++++++++++++++++++++++++++++ Gemfile.lock | 10 +++---- 2 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/deply.yml diff --git a/.github/workflows/deply.yml b/.github/workflows/deply.yml new file mode 100644 index 0000000..d9a20d4 --- /dev/null +++ b/.github/workflows/deply.yml @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index 709ab36..775df2d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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) @@ -68,6 +68,7 @@ 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) @@ -75,10 +76,9 @@ GEM 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) @@ -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