Skip to content

Syncing API (#386) #221

Syncing API (#386)

Syncing API (#386) #221

name: Deploy Github Pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x] # We will deploy with only one version of node
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build and test
run: |
npm ci
npx json -I -f package.json -e "this.homepage='https://redhatinsights.github.io/api-documentation-frontend/'"
npm run build --if-present
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build