vanten-s.com/.forgejo/workflows/deploy.yaml
vanten-s 68a60be674
All checks were successful
/ build (push) Successful in 28s
Made deployment action more readable
2024-08-05 00:14:53 +02:00

17 lines
535 B
YAML

on: [push]
jobs:
build:
runs-on: docker
container:
image: alpine:latest
steps:
- run: apk add hugo
- run: apk add git
- run: apk add openssh
- run: git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com src
- run: hugo -s src
- 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/