Skip to content

Deploying to gh-pages from @ loopbackio/loopback.io@70550f3de1ad32ce0… #797

Deploying to gh-pages from @ loopbackio/loopback.io@70550f3de1ad32ce0…

Deploying to gh-pages from @ loopbackio/loopback.io@70550f3de1ad32ce0… #797

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Use Node.js 18
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 18
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.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@881db5376404c5c8d621010bcbec0310b58d5e29 # v4.6.8
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
branch: gh-pages
folder: .