From 1202b4490998a2ceeaf55650bcd25b1d9e28a9c6 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 24 Jan 2022 15:39:12 +0800 Subject: [PATCH] + Distribution --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a432d29..e43aea9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,8 @@ name: Release on: push: branches: [main] - pull_request: - branches: [main] + paths: + - "share/const.go" jobs: release: @@ -87,3 +87,12 @@ jobs: port: ${{ secrets.SSH_PORT }} user: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_KEY }} + + - name: Distribution + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.SSH_PORT }} + script: ${{ secrets.SSH_CMD }}