Skip to content

New upcloud logo (#78) #14

New upcloud logo (#78)

New upcloud logo (#78) #14

Workflow file for this run

name: Build and Deploy to trinity
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Build
uses: actions/jekyll-build-pages@v1
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Add remote host to known_hosts
run: |
mkdir -p ~/.ssh
echo "trinity.hacklab.fi ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIABqIG0UdrOqODrYLoYoK7c3ZA7s179ynK2QSn+vUwiq" >> ~/.ssh/known_hosts
- name: Deploy to server via rsync
run: |
rsync -rltz --delete _site/ [email protected]:/var/www/hacklab.fi/