website/.forgejo/workflows/publish.yaml

23 lines
589 B
YAML
Raw Normal View History

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-08-02 10:14:02 +02:00
tool: zola
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/"
2024-06-12 16:26:02 +02:00
strip_components: 1