blob: 52bfb1f1279d27c09893eb19ef5aff628e0ae808 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
name: Deploying Static Site
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Build:
container: alpine:latest
steps:
- name: Install dependencies
run: apk add zola nodejs git openssh
- name: Check out repository code
uses: actions/checkout@v4
- run: zola build
- name: Write SSH keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H soaos.dev > ~/.ssh/known_hosts
- name: Copy built site to server
run: scp -sr public git@soaos.dev:/var/www/soaos.dev
|