-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.47 KB
/
deploy.yml
File metadata and controls
44 lines (38 loc) · 1.47 KB
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
# Triggers the workflow on push or pull request events but only for the main branch
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build_test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Setup Node.js using the specified version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# Install dependencies using npm
- name: Install dependencies
run: npm install
# Build the project using npm
- name: Build project
run: npm run build
env:
VITE_PUBLIC_POSTHOG_KEY: ${{ secrets.VITE_PUBLIC_POSTHOG_KEY }}
VITE_PUBLIC_POSTHOG_HOST: ${{ secrets.VITE_PUBLIC_POSTHOG_HOST }}
VITE_PUBLIC_TERMINAL_HOST: ${{ vars.VITE_PUBLIC_TERMINAL_HOST }}
VITE_PUBLIC_TERMINAL_PROTOCOL: ${{ vars.VITE_PUBLIC_TERMINAL_PROTOCOL }}
VITE_PUBLIC_TERMINAL_WS_PROTOCOL: ${{ vars.VITE_PUBLIC_TERMINAL_WS_PROTOCOL }}
# Deploy the HTML directory to GitHub Pages
- name: Deploy to GitHub Pages
uses: uibcdf/action-html-dir-to-gh-pages@1.0.0
with:
# Name of the branch where the html directory is located
branch: master
# Path of the html directory
html_dir: dist