-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 1015 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Deploy to GitHub Pages
on:
push:
branches:
- master # Trigger the deployment when changes are pushed to the main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
VITE_CLIENT_WEB_BASE_URL: "/nostr-ts/"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install --force
- name: Build packages
run: pnpm run build
- name: Build client-web
run: |
cd client-web
pnpm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client-web/dist
publish_branch: gh-pages
user_name: 'GitHub Actions'
user_email: '[email protected]'