-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 970 Bytes
/
main.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
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
page_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
sudo apt update
sudo apt install -y nodejs npm
sudo npm install -g yarn
cd ./matrix-js-sdk
yarn link
yarn install
cd ..
cd ./matrix-react-sdk
yarn link
yarn link matrix-js-sdk
yarn install
cd ..
cd ./element-web
yarn link matrix-js-sdk
yarn link matrix-react-sdk
yarn install
yarn build
cd ..
cp ./assets/config.json ./element-web/webapp/
cp ./assets/logo.svg ./element-web/webapp/themes/element/img/logos/element-logo.svg
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: element-web/webapp