2024-05-26 00:52:08 +02:00
|
|
|
on: [push]
|
2024-05-26 19:43:06 +02:00
|
|
|
|
2024-05-26 00:52:08 +02:00
|
|
|
jobs:
|
2024-05-26 19:49:54 +02:00
|
|
|
build:
|
2024-05-26 00:52:08 +02:00
|
|
|
runs-on: docker
|
|
|
|
steps:
|
2024-05-26 19:45:15 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-05-26 20:08:07 +02:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2024-06-25 15:41:19 +02:00
|
|
|
- uses: https://github.com/taiki-e/install-action@v2
|
2024-05-26 19:52:45 +02:00
|
|
|
with:
|
2024-06-25 15:46:05 +02:00
|
|
|
tool: zola@0.18.0
|
2024-05-26 20:25:00 +02:00
|
|
|
- run: zola build
|
|
|
|
- name: copy file via ssh password
|
2024-05-26 20:25:56 +02:00
|
|
|
uses: https://github.com/appleboy/scp-action@v0.1.7
|
2024-05-26 20:25:00 +02:00
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
source: "public/*"
|
2024-06-12 16:22:37 +02:00
|
|
|
target: "/usr/share/nginx/snamellit/"
|
2024-06-12 16:26:02 +02:00
|
|
|
strip_components: 1
|