aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/deploy.yaml
blob: 0059230ddddc349bab0e1802a8527985a85b5e9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Deploying Static Site
on: [push]

jobs:
  Build:
    container:
      image: "git.soaos.dev/soaos/ringfairy:latest"
    steps:
      - name: Check out repository code
        uses: actions/checkout@v4
      - name: Build webring using ringfairy
        run: 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