update action
All checks were successful
Publish Website / SFTP Workflow (push) Successful in 1m18s

This commit is contained in:
2025-02-19 14:06:06 +01:00
parent 54d15902cf
commit a047997127

View File

@ -1,12 +1,35 @@
name: Deploy klank.school website
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
name: "Publish Website"
on:
push:
branches:
- "main"
workflow_dispatch:
inputs:
sync:
description: "File synchronization"
required: true
default: "delta"
jobs:
Deploy-Website:
sftp-upload:
runs-on: ubuntu-latest
name: SFTP Workflow
steps:
- name: checkout code
- name: "Checkout"
uses: actions/checkout@v4
- run: hostname
- run: echo "The status of the job is ${{ job.status }}"
with:
fetch-depth: 0
- name: "Upload to SFTP server"
uses: https://code.klank.school/riviera/actions-file-deployer@v2
with:
remote-protocol: "sftp"
remote-host: '${{ secrets.SFTP_HOST }}'
remote-user: '${{ secrets.SFTP_USER }}'
remote-port: '${{ secrets.SFTP_PORT }}'
remote-password: '${{ secrets.SFTP_PASSWORD }}'
remote-path: "/upload/klank.school"
local-path: '${{ gitea.workspace }}'
debug: false
sync: "full"