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版本]