From 77a709e1060c27aed09228ff3e7afb22562ee155 Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sun, 27 Jul 2025 17:17:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布生产 --- .gitea/workflows/demo.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 6b2eeb2..ed095fb 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -116,6 +116,16 @@ jobs: echo 'docker build -t .' echo 'docker push :latest' docker info + - name: 通过 SSH 复制文件 + uses: appleboy/scp-action@v1 + with: + host: ${{ vars.DEPLOY_HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ vars.PORT }} + #source: "tests/a.txt,tests/b.txt" + source: "pom.xml" + target: /tmp/ deploy: needs: build runs-on: ubuntu-latest @@ -268,7 +278,7 @@ jobs: echo "获取gitea: ${{ gitea.repository }}" - name: release # uses: softprops/action-gh-release@v2这是github的.gitea官方的actions才支持.gitea官方的actions:https://gitea.com/actions - uses: https://gitea.com/actions/gitea-release-action@v1 # akkuman/gitea-release-action@v1 + uses: https://gitea.com/actions/gitea-release-action@v1.3.4 # akkuman/gitea-release-action@v1 env: #GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # github版本专用 NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18[gitea版本]