Skip to content

Commit

Permalink
fix: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Nov 21, 2024
1 parent 2215fd0 commit 9cb77ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
name: Deploy Email App
name: Deploy Apps

on:
push:
branches:
- main # Update if your default branch is different
- main

jobs:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
app:
- email
- core-connection

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20 # Ensure this matches your project requirements
node-version: 20
cache: 'npm'

- name: Install dependencies
- name: Install dependencies and build
run: |
cd examples/email
cd examples/${{ matrix.app }}
npm install
- name: Build Email App
run: |
cd examples/email
npm run build
mkdir -p ../../gh-pages/email
cp -R dist/* ../../gh-pages/email
mkdir -p ../../gh-pages/${{ matrix.app }}
cp -R dist/* ../../gh-pages/${{ matrix.app }}
- name: Deploy to GitHub Pages
if: ${{ matrix.app == 'core-connection' }} # Deploy after the last app
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions examples/core-connection/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [nodePolyfills({}), react()],
base: '/push-network-sdk/core-connection/',
});

0 comments on commit 9cb77ce

Please sign in to comment.