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-05-26 19:57:30 +02:00
|
|
|
- uses: https://github.com/taiki-e/install-action@v2
|
2024-05-26 19:52:45 +02:00
|
|
|
with:
|
|
|
|
tool: zola@0.17.1
|
2024-05-26 20:00:10 +02:00
|
|
|
- run: pwd
|
|
|
|
- run: find .
|
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/*"
|
|
|
|
target: "/usr/share/nginx/snamellit/"
|