From fc137f09f2608a8d914f41c978780ca2305ddc6c Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sun, 12 Sep 2021 00:02:06 +0800 Subject: [PATCH] :construction_worker: add github deployment --- .github/workflows/deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d6f6bd2..f73f5d8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,6 +11,14 @@ jobs: deploy: runs-on: ubuntu-latest steps: + - name: start deployment + uses: bobheadxi/deployments@v0.6.0 + id: deployment + with: + step: start + token: ${{ secrets.GITHUB_TOKEN }} + env: official-bot + - name: remote ssh command uses: appleboy/ssh-action@master env: @@ -23,3 +31,12 @@ jobs: script: | cd $DEPLOY_PATH docker-compose up --force-recreate -d + + - name: update deployment status + uses: bobheadxi/deployments@v0.4.3 + if: always() + with: + step: finish + token: ${{ secrets.GITHUB_TOKEN }} + status: ${{ job.status }} + deployment_id: ${{ steps.deployment.outputs.deployment_id }}