Skip to content

Commit

Permalink
chore: Update build workflows for landing page and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Aug 19, 2024
1 parent d923624 commit c4deb55
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 6 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Python App 🏗️

on:
pull_request:
branches: ["develop"]
paths: [
"documentation/occupi-docs/pages/**",
"documentation/occupi-docs/components/**",
"documentation/occupi-docs/.gitignore",
"documentation/occupi-docs/next.config.js",
"documentation/occupi-docs/package.json",
"documentation/occupi-docs/theme.config.tsx",
"documentation/occupi-docs/tsconfig.json",
".github/workflows/deploy-docs.yml"
]

workflow_dispatch:

defaults:
run:
working-directory: documentation/occupi-docs

jobs:
# Build job
build-test:
name: 🏗️ Build
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # or "latest", "canary", <sha>

- name: 📦 Install dependencies with Bun
run: bun install

- name: 🚀 Build with Next.js
run: bun run build
35 changes: 35 additions & 0 deletions .github/workflows/build-landing-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Landing page 🏗️

on:
pull_request:
branches: ["develop"]
paths: [
"frontend/occupi/**",
".github/workflows/build-landing-page.yml"
]

workflow_dispatch:

defaults:
run:
working-directory: frontend/occupi

jobs:
# Build job
build-test:
name: 🏗️ Build
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: 🏗 Setup node
uses: actions/setup-node@v4
with:
node-version: "18"

- name: 📦 Install dependencies with node
run: npm install

- name: 🚀 Build with Next.js
run: npm run build
12 changes: 6 additions & 6 deletions .github/workflows/deploy-landing-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v1
- name: 🏗 Setup node
uses: actions/setup-node@v4
with:
bun-version: latest # or "latest", "canary", <sha>
node-version: "18"

- name: 📦 Install dependencies with Bun
run: bun install
- name: 📦 Install dependencies with node
run: npm install

- name: 🚀 Build with Next.js
run: bun run build
run: npm run build

build-push-docker:
name: 🐋 Build and Push Landing Page Docker Image
Expand Down

0 comments on commit c4deb55

Please sign in to comment.