Skip to content

Commit

Permalink
build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferror committed Sep 15, 2024
1 parent cb6a8fc commit 6407962
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Catalog

on:
push:
branches:
- master
workflow_dispatch: ~

permissions:
contents: write

jobs:
tests:
runs-on: ubuntu-latest
steps:
- # Copies the repository files to the Action Runner
name: Checkout Repository
uses: actions/[email protected]

-
name: Install Node.js
uses: actions/[email protected]
with:
node-version: 20.17

- # Upload Async API files to storage
name: Move Async API files to Catalog
run: |
cp account-service/asyncapi.yaml catalog/asyncapi/account-service.yaml
cp payment-service/asyncapi.yaml catalog/asyncapi/payment-service.yaml
- # Generate Catalog from Async API files
name: Install Dependencies
run: cd catalog && npm install

- # Generate Catalog from Async API files
name: Generate Catalog
run: cd catalog && npm run generate

-
name: Build Production Catalog
run: cd catalog && npm run build

-
name: Add .nojekyll file to catalog
run: cd catalog/out/ && touch .nojekyll

-
name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: catalog/out/ # The folder the action should deploy.
branch: website # The branch the action should deploy.

0 comments on commit 6407962

Please sign in to comment.