-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (41 loc) · 1.3 KB
/
gh-pages.yaml
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
51
on:
push:
tags:
- "v*.*.*"
env:
FLUTTER_VERSION: 3.10.6
name: Deploying on GitHub Pages
jobs:
deploy_page:
name: Deploy on GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}"
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Setup Nix (to build libolm)
uses: cachix/install-nix-action@v19
- name: Build libolm
run: |
rm -rf assets/js
nix build -v "git+https://gitlab.matrix.org/matrix-org/olm.git#javascript" -o assets/js
sudo chmod 777 -R assets/js
cd assets/js/ && mv javascript package
- name: Build Web version
run: ./scripts/build-web.sh
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
cname: "beta.twake.app"
destination_dir: "web"