Skip to content

Merge pull request #3934 from edwardloveall/el-zed-addon-example #1285

Merge pull request #3934 from edwardloveall/el-zed-addon-example

Merge pull request #3934 from edwardloveall/el-zed-addon-example #1285

Workflow file for this run

name: Publish docs
on:
push:
branches: [main]
paths:
- 'jekyll/**'
- '.github/workflows/publish_docs.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'Shopify/ruby-lsp'
name: Publish documentation website
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
bundler-cache: true
working-directory: ./jekyll
- name: Configure git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Generate documentation
working-directory: ./jekyll
run: bundle exec jekyll build
- name: Commit to gh-pages
run: |
git add docs -f
git commit -m "Publish website $(git log --format=format:%h -1)"
git push --force origin main:gh-pages