Skip to content

Commit

Permalink
Fixed the Deploy Demo App pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
souyahia-monk committed Aug 7, 2024
1 parent 1f38742 commit e417f59
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 25 deletions.
10 changes: 9 additions & 1 deletion .github/actions/monkjs-set-up/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Set Up the MonkJs Project 💽
description: Install the dependencies and build the packages before running other CI jobs.

inputs:
build-env:
description: 'Environement specified when building the packages (development or production).'
required: false
default: 'development'

runs:
using: "composite"
steps:
Expand All @@ -17,4 +23,6 @@ runs:
yarn install
- name: 🏗️ Building packages
shell: bash
run: yarn build
run: yarn build:$BUILD_ENV
env:
BUILD_ENV: ${{ inputs.build-env }}
2 changes: 2 additions & 0 deletions .github/workflows/build-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📱 Building the demo app
run: cd apps/demo-app && yarn build:staging
2 changes: 2 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📚 Building the documentation
run: yarn build:documentation
23 changes: 0 additions & 23 deletions .github/workflows/build-drive-app.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/deploy-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📱 Building the demo app
run: cd apps/demo-app && yarn build:staging
- name: 📦 Uploading the artifact
uses: actions/[email protected]
with:
name: build-demo-app-staging
path: build
path: apps/demo-app/build
if-no-files-found: error

deploy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📚 Building the documentation
run: yarn build:documentation
- name: 📃 Setting Up GitHub Pages
Expand Down

0 comments on commit e417f59

Please sign in to comment.