From 6e5dc84236df7639d4834f201f8e5e199bc5648b Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Mon, 24 Nov 2025 15:43:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0dev-ci.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev-ci.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/dev-ci.yaml diff --git a/.gitea/workflows/dev-ci.yaml b/.gitea/workflows/dev-ci.yaml new file mode 100644 index 00000000..0960cada --- /dev/null +++ b/.gitea/workflows/dev-ci.yaml @@ -0,0 +1,26 @@ +name: Gitea Actions Official-website +run-name: Deploy to ${{ inputs.deploy_target }} by @${{ gitea.actor }} +on: + push: + branches: + - dev + +jobs: + deploy-dev: + runs-on: ubuntu-latest + steps: + - name: Setup SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts + - name: Deploy application + run: | + ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF' + set -e + cd /www/wwwroot/dev.ow.f2b211.com + + # 拉取最新代码 + git pull --rebase + EOF