Skip to content

Deploy Docs 📚

Deploy Docs 📚 #1

Workflow file for this run

name: Deploy Docs 📚
on:
push:
branches: [main]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
jobs:
deploy-docs:
name: Deploy docs that hit different fr fr
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install dependencies
working-directory: docs
run: |
bundle init
bundle add jekyll
bundle add just-the-docs
bundle install
- name: Build site
working-directory: docs
run: bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4