All checks were successful
Deploying Static Site / Build (push) Successful in 37s
22 lines
676 B
YAML
22 lines
676 B
YAML
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_ed25519
|
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
|
ssh-keyscan -H 192.168.1.113 > ~/.ssh/known_hosts
|
|
- name: Copy built site to server
|
|
run: scp -sr public git@192.168.1.113:/var/www/soaos.dev
|
|
|