All checks were successful
Deploying Static Site / Build (push) Successful in 34m14s
31 lines
1003 B
YAML
31 lines
1003 B
YAML
name: Deploying Static Site
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
container: alpine:latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: apk add git nodejs openssh rust cargo alpine-sdk openssl-dev
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Install ringfairy
|
|
run: |
|
|
git clone https://github.com/k3rs3d/ringfairy.git
|
|
cd ringfairy
|
|
cargo build --release
|
|
cd ..
|
|
- name: Build webring using ringfairy
|
|
run: |
|
|
ringfairy/target/release/ringfairy
|
|
- 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: |
|
|
ssh git@192.168.1.113 "rm -rf /var/www/evilr.ing && mkdir /var/www/evilr.ing"
|
|
scp -sr webring/. git@192.168.1.113:/var/www/evilr.ing
|
|
|