2024-07-21 22:16:26 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2024-07-21 22:26:45 +02:00
|
|
|
build:
|
2024-07-21 22:16:26 +02:00
|
|
|
runs-on: docker
|
2024-07-21 22:41:54 +02:00
|
|
|
container:
|
|
|
|
image: alpine:latest
|
2024-07-21 22:16:26 +02:00
|
|
|
steps:
|
2024-07-21 22:41:54 +02:00
|
|
|
- run: apk add hugo
|
2024-07-21 22:43:36 +02:00
|
|
|
- run: apk add git
|
2024-07-21 22:52:22 +02:00
|
|
|
- run: apk add openssh
|
2024-07-21 22:54:25 +02:00
|
|
|
- run: git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com src
|
|
|
|
- run: hugo -s src
|
2024-08-05 00:11:08 +02:00
|
|
|
- run: mkdir $HOME/.ssh
|
|
|
|
- run: echo "${{ secrets.KEY }}" > $HOME/.ssh/id_ed25519
|
|
|
|
- run: chmod 0600 $HOME/.ssh/id_ed25519
|
|
|
|
- run: scp -o "StrictHostKeyChecking=no" -P 24 -r src/public svante@vanten-s.com:nginx-docker/vanten-s.com/
|