diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-03-13 18:39:30 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2020-03-13 18:46:09 +0000 |
| commit | 9364529aa5c0a065b91be7ec7f86ac5694d8c805 (patch) | |
| tree | 15b009372576c7a1d334b03f3b448e7bf0626f20 /.github/workflows/deploy.yml | |
| parent | cc1869e92022f02e9fa22de883822e3050d958f9 (diff) | |
| download | AnySoftKeyboard-9364529aa5c0a065b91be7ec7f86ac5694d8c805.tar.gz AnySoftKeyboard-9364529aa5c0a065b91be7ec7f86ac5694d8c805.tar.bz2 | |
Promote deployment workflow
Diffstat (limited to '.github/workflows/deploy.yml')
| -rw-r--r-- | .github/workflows/deploy.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4bb722dcd..beecea34b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,6 +28,9 @@ jobs: mkdir -p outputs/apks || true mkdir -p outputs/fdroid || true mkdir -p ime/app/build/outputs/mapping || true + - name: status-in-progress + if: failure() + run: ./gradlew --stacktrace :deployment:updateDeploymentState -PRequest.apiUsername="${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }}" -PRequest.apiUserToken="${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}" -PrequestStatus.environment="${{ github.event.deployment.environment }}" -PrequestStatus.deployment_id="${{ github.event.deployment.id }}" -PrequestStatus.deployment_state="in_progress" - uses: ./.github/actions/deploy with: deployment_id: ${{ github.event.deployment.id }} @@ -41,6 +44,8 @@ jobs: publish_service_account: ${{ secrets.PUBLISH_APK_SERVICE_ACCOUNT_EMAIL }} api_user: ${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }} api_token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }} + - name: status-success + run: ./gradlew --stacktrace :deployment:updateDeploymentState -PRequest.apiUsername="${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }}" -PRequest.apiUserToken="${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}" -PrequestStatus.environment="${{ github.event.deployment.environment }}" -PrequestStatus.deployment_id="${{ github.event.deployment.id }}" -PrequestStatus.deployment_state="success" - name: status-failure if: failure() run: ./gradlew --stacktrace :deployment:updateDeploymentState -PRequest.apiUsername="${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }}" -PRequest.apiUserToken="${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}" -PrequestStatus.environment="${{ github.event.deployment.environment }}" -PrequestStatus.deployment_id="${{ github.event.deployment.id }}" -PrequestStatus.deployment_state="failure" |
