Skip to content

Update ruby/setup-ruby action to v1.188.0 (#1721) #757

Update ruby/setup-ruby action to v1.188.0 (#1721)

Update ruby/setup-ruby action to v1.188.0 (#1721) #757

Workflow file for this run

name: Build and Deploy LoopBack.io site
on:
push:
branches:
- gh-pages
workflow_dispatch:
branches:
- gh-pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- name: Use Node.js 18
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@50ba3386b050ad5b97a41fcb81240cbee1d1821f # v1.188.0
with:
ruby-version: 3.2
- name: Install and Build 🔧
run: |
bundle install
npm install
npm ls @loopback/docs 2>/dev/null || true
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@94f3c658273cf92fb48ef99e5fbc02bd2dc642b2 # v4.6.3
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
branch: gh-pages
folder: .