Maciej Krzyżanowski 7e7b5b72dd
All checks were successful
Build blog / build (push) Successful in 13s
Blog deployment via scp
2025-01-17 01:48:33 +01:00

30 lines
846 B
YAML

name: Build blog
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
- run: sudo apt -qqy update
- run: sudo apt -qqy install wget
- run: wget https://github.com/gohugoio/hugo/releases/download/v0.141.0/hugo_0.141.0_linux-amd64.deb
- run: sudo dpkg -i hugo_0.141.0_linux-amd64.deb
- run: hugo
- uses: actions/upload-artifact@v3
with:
name: blog-public
path: public/
- uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.DEPLHOST }}
username: ${{ secrets.DEPLUSR }}
key: ${{ secrets.DEPLKEY }}
source: "public"
strip_components: 1
target: /var/www/krzyzanowski.dev/blog