This commit is contained in:
naielv
2025-07-15 13:58:04 +02:00
parent 2c277bb12d
commit 9bc08a76e8

View File

@@ -3,6 +3,8 @@ name: Build server
on:
push:
tags: ["v*-*-*_*"]
branches:
- main
jobs:
build-and-deploy:
@@ -52,4 +54,17 @@ jobs:
key: ${{ secrets.KEY }}
script: |
cd ${{ secrets.FOLDER }}
unzip TeleSec-dist.zip
unzip TeleSec-dist.zip
- uses: mdallasanta/ssh-scp-deploy@{version}
with:
local: './dist/' # Local file path - REQUIRED false - DEFAULT ./
remote: '${{ secrets.FOLDER }}' # Remote file path - REQUIRED false - DEFAULT ~/
host: ${{secrets.HOST}} # Remote server address - REQUIRED true
port: 22 # Remote server port - REQUIRED false - DEFAULT 22
user: ${{secrets.USER}} # Remote server user - REQUIRED true
key: ${{secrets.KEY}} # Remote server private key - REQUIRED at least one of "password" or "key"
pre_upload: echo "This will be executed before the upload!" # Command to run via ssh before scp upload - REQUIRED false
post_upload: "ls ${{ secrets.FOLDER }}" # Command to run via ssh after scp upload - REQUIRED false
ssh_options: -o StrictHostKeyChecking=no # A set of ssh_option separated by -o - REQUIRED false - DEFAULT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
scp_options: -v # Flags to use during scp - REQUIRED false - DEFAULT ''