forked from element-hq/hydrogen-web
-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.8 KB
/
build.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
45
46
47
48
49
50
name: Deploy to GitHub Pages
on:
push:
branches:
- asozial
jobs:
deploy:
name: Deployment
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Download files
run: |
curl https://raw.githubusercontent.com/asozialesnetzwerk/chat-configs/main/config.json > config.json
curl https://raw.githubusercontent.com/asozialesnetzwerk/chat-configs/main/customize.sh > customize.sh
- name: Fix Footer
run: curl https://raw.githubusercontent.com/asozialesnetzwerk/chat-configs/main/VectorAuthFooter.js > src/components/views/auth/VectorAuthFooter.js
#easy way: run: sed -i 's|<a href="https://matrix.org" target="_blank" rel="noreferrer noopener">{ _t(.Powered by Matrix.) }</a>| |g' src/components/views/auth/VectorAuthFooter.js
- name: Build with yarn
run: |
yarn install
RIOT_OG_IMAGE_URL="themes/element/img/logos/element-logo.svg" yarn dist
- name: Customize login page
run: |
chmod +x customize.sh
./customize.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: webapp