Skip to content

Commit

Permalink
test: ghpages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Nov 21, 2024
1 parent 99f57c4 commit 264db02
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Email App

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

jobs:
deploy:
runs-on: ubuntu-latest

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
cache: 'npm'

- name: Install dependencies
run: npm install # Or pnpm/yarn if you are using a different package manager

- name: Build Email App
run: |
cd examples/email
npm run build
mkdir -p ../../gh-pages/email
cp -R dist/* ../../gh-pages/email
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: gh-pages
2 changes: 2 additions & 0 deletions examples/email/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
// This is the base path for the email app
base: '/push-network-sdk/email/',
});

0 comments on commit 264db02

Please sign in to comment.