-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
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. |