2023-10-08 22:38:08 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
master
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs_on: docker
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: cd docs && yarn install
|
2023-10-08 22:40:47 +00:00
|
|
|
- name: Install additional dependencies
|
|
|
|
run: apt update && apt-get install -y sshpass rsync
|
2023-10-08 22:38:08 +00:00
|
|
|
- name: Build static site
|
|
|
|
run: cd docs && yarn build
|
|
|
|
- name: Upload site
|
|
|
|
run: sshpass -p "${{ secrets.TRIFID_WEBSITE_NEXT_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_WEBSITE_NEXT_PORT }} -o StrictHostKeyChecking=no' docs/build ${{ secrets.TRIFID_WEBSITE_NEXT_USER }}@${{ secrets.TRIFID_WEBSITE_NEXT_IP }}:${{ secrets.TRIFID_WEBSITE_NEXT_PATH }}
|