-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (25 loc) · 941 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
name: Auto deploy
on:
push:
jobs:
website:
name: Website build and deploy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Update content submodule to latest commit
run: git submodule update --remote --checkout
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Yarn packages
run: yarn install --immutable
- name: Build static website
run: yarn run generate
- name: Install rclone
run: sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq rclone
- name: Deploy to kueken.studieren-ohne-grenzen.org
run: rclone sync --sftp-host ${{ vars.SFTP_HOST }} --sftp-user ${{ vars.SFTP_USERNAME }} --sftp-pass ${{ secrets.SFTP_PASSWORD }} ./dist kueken:/html --progress --stats-one-line --stats=5s