Skip to content

Removing Web/ from the excluded paths. It SHOULD run builds when th… #81

Removing Web/ from the excluded paths. It SHOULD run builds when th…

Removing Web/ from the excluded paths. It SHOULD run builds when th… #81

name: Deploy EventCatalog to GitHub Pages
on:
push:
branches:
- dev
- tech_debt/ec-docs
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
env:
EVENTCATALOG_STARTER_LICENSE_KEY: ${{ secrets.EVENTCATALOG_STARTER_LICENSE_KEY }}
BASE_URL: "/link-cloud/"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm ci
working-directory: ./docs
- name: Build EventCatalog
run: npm run build
working-directory: ./docs
- name: Upload build output
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4