-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (33 loc) · 992 Bytes
/
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
name: Build and Deploy TEI Website
on:
push:
branches:
- main
repository_dispatch:
types: [update-documentation]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: 'recursive'
- name: Update submodule
run: git submodule update --remote src/documentation/Documentation
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Build
run: |
npm install
npx @11ty/eleventy
- name: Deploy
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.TEIWEB_KEY }}
- run: |
ssh -o StrictHostKeyChecking=accept-new ${{ secrets.TEIWEB_USER }}@${{ secrets.TEIWEB_HOST }} uptime
rsync -avz -e ssh --delete dist/ ${{ secrets.TEIWEB_USER }}@${{ secrets.TEIWEB_HOST }}:${{ secrets.TEIWEB_PATH }}