-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.49 KB
/
lighthouse.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
51
52
53
54
name: Lighthouse
on:
workflow_dispatch:
push:
concurrency: lighthouse
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: yarn
- name: Build
run: yarn generate
- name: Symlinks
run: |
cp -r ./cms-content/static/blog ./_blog
cp -r ./cms-content/static/veranstaltungen ./_veranstaltungen
cp -r ./cms-content/static/download ./_download
cp -r ./cms-content/static/old ./_old
rm -r ./dist/blog
rm -r ./dist/veranstaltungen
rm -r ./dist/download
cp -r ./_blog ./dist/blog
cp -r ./_veranstaltungen ./dist/veranstaltungen
cp -r ./_download ./dist/download
cp -r ./_old ./dist/old
- name: Setup deploy
run: |
echo "${{secrets.DEPLOY_KEY}}" > deploy_key
chmod 600 ./deploy_key
- name: Deploy to lighthouse.ec-nordbund.de
run: |
rsync -chrvz --stats --delete \
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
./dist/ [email protected]:/webpage/lighthouse.ec-nordbund.de
- name: Lighthouse Audits
run: yarn lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{secrets.LHCI_GITHUB_APP_TOKEN}}
LHCI_TOKEN: ${{secrets.LHCI_TOKEN}}
CI: true