This commit is contained in:
@ -1,12 +1,35 @@
|
|||||||
name: Deploy klank.school website
|
name: "Publish Website"
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
sync:
|
||||||
|
description: "File synchronization"
|
||||||
|
required: true
|
||||||
|
default: "delta"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Deploy-Website:
|
sftp-upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: SFTP Workflow
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: "Checkout"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: hostname
|
with:
|
||||||
- run: echo "The status of the job is ${{ job.status }}"
|
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"
|
||||||
|
Reference in New Issue
Block a user