website/.forgejo/workflows/publish.yaml
Peter Tillemans ec5a6e815f
Some checks failed
/ build (push) Failing after -3s
use zola-deploy-action
2025-06-29 01:34:22 +02:00

28 lines
750 B
YAML

on: [push]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: 'build'
uses: shalzz/zola-deploy-action@master
env:
PAGES_BRANCH: main
BUILD_DIR: .
BUILD_ONLY: true
- uses: https://github.com/taiki-e/install-action@v2
with:
tool: zola
- run: zola build
- name: copy file via ssh password
uses: https://github.com/appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: "public/*"
target: "/usr/share/nginx/snamellit/"
strip_components: 1