Deploying to gh-pages from @ loopbackio/loopback.io@0108f98388980e6dc… #543
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
persist-credentials: false | |
- name: Use Node.js 16 | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: 16 | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 | |
with: | |
ruby-version: 2.7 | |
- 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@a1ea191d508feb8485aceba848389d49f80ca2dc # v4.4.3 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
branch: gh-pages | |
folder: . |