This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user