Skip to content

Commit

Permalink
feat: gh-pages deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 29, 2024
1 parent 9fb9311 commit 7a05025
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/build-ci-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Integration Test (Build) for custom signup layer frontend

on:
pull_request:
types:
- opened
- synchronize
branches:
- main
paths:
- "frontend/**"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.2.0

- name: Install pnpm
run: |
cd frontend
npm install -g pnpm
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: |
cd frontend
pnpm install
- name: Build the application
run: |
cd frontend
pnpm run build
50 changes: 50 additions & 0 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy frontend for custom signup layer

on:
push:
branches:
- main
paths:
- "frontend/**"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.2.0

- name: Install pnpm
run: |
cd frontend
npm install -g pnpm
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: |
cd frontend
pnpm install
- name: Build the application
run: |
cd frontend
pnpm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./frontend/dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Deployment Pipeline
name: Deploy self-hosted ntfy and backend custom signup layer

on:
push:
Expand Down

0 comments on commit 7a05025

Please sign in to comment.