Update ruby/setup-ruby action to v1.204.0 (#1786) #827
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: 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@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.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@15de0f09300eea763baee31dff6c6184995c5f6a # v4.7.2 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
branch: gh-pages | |
folder: . |