Maciej Krzyżanowski
bdf3bb6307
All checks were successful
Build blog / build (push) Successful in 18s
31 lines
894 B
YAML
31 lines
894 B
YAML
name: Build blog
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.BLOGPOSTSSECRET }}
|
|
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
|
|
|