Deploy Docs 📚 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |