deploy workflow test1
deploy workflow / Explore-Gitea-Actions (push) Failing after 2s

This commit is contained in:
cancerai committed 2026-08-28 16:02:20 +08:00
1 parent 056934e866
commit 789375cb33
1 file changed
+18 -9
+18 -9
View File
@@ -1,16 +1,25 @@
name: deploy workflow
run-name: deploy workflow
on: [push]
on:
push:
branches: [ main ]
jobs:
Explore-Gitea-Actions:
runs-on: runner
steps:
- run: echo hello workflows
#- uses: gitea/actions/checkout@v4
#- name: Install rsync and ssh
#run: sudo apt update && sudo apt install -y rsync openssh-client
#- name: Add ssh key
#run: echo "" > ~/.ssh/
#- name: Push data to website server
#run: rsync --delete ./ nginx@cancerai.top:www/owner/
- uses: gitea/actions/checkout@v4
- name: Install rsync and ssh
run: sudo apt update && sudo apt install -y rsync openssh-client
- name: Configure ssh key
env:
SSH_KEY: ${{ RUNNER_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo ${ SSH_KEY } > ~/.ssh/private_key
chmod 600 ~/.ssh/private_key
ssh-keyscan -p 2001 cancerai.top >> ~/.ssh/known_hosts
- name: Push data to website server
run: rsync --delete -e "ssh -p 2001" ./ nginx@cancerai.top:www/owner/
- name: Clean key
run: rm -rf ~/.ssh