Skip to content

Build and Deploy to GitHub Pages #1098

Build and Deploy to GitHub Pages

Build and Deploy to GitHub Pages #1098

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- master
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
bundler-cache: true
- uses: actions/cache@v4
with:
path: docs/vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install dependencies
working-directory: ./docs
run: |
gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build Jekyll site
working-directory: ./docs
run: bundle exec jekyll build -s . -c _config.yml -d ../_site
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_site
cname: exynoobs.github.io/OTA/