From 1a6579fe33140d0b633d2500ca0de7733a872ae5 Mon Sep 17 00:00:00 2001 From: Jeroen Meijer Date: Mon, 27 Jul 2020 13:09:31 +0200 Subject: [PATCH] revert: ci: add deployment status to publish workflow This reverts commit 741d2f83acc061b514616d9760ec24eaf86a6442. --- .github/workflows/publish_web.yaml | 50 ------------------------------ 1 file changed, 50 deletions(-) diff --git a/.github/workflows/publish_web.yaml b/.github/workflows/publish_web.yaml index 8ef0efe..23d380c 100644 --- a/.github/workflows/publish_web.yaml +++ b/.github/workflows/publish_web.yaml @@ -14,23 +14,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Create GitHub deployment - uses: chrnorm/deployment-action@releases/v1 - id: deployment - with: - token: "${{ github.token }}" - target_url: https://jeroen-meijer.github.io/shiritori/ - environment: production - - - name: Set deployment status to pending - uses: chrnorm/deployment-action@releases/v1 - with: - deployment_id: ${{ steps.deployment.outputs.deployment_id }} - token: "${{ github.token }}" - target_url: https://jeroen-meijer.github.io/shiritori/ - environment: production - status: pending - - name: Install Flutter uses: subosito/flutter-action@v1.3.0 with: @@ -46,49 +29,16 @@ jobs: working-directory: ${{ env.APP_WORKING_DIRECTORY }} - name: Build - id: build run: flutter build web --release working-directory: ${{ env.APP_WORKING_DIRECTORY }} - - name: Set deployment status to in progress - uses: chrnorm/deployment-action@releases/v1 - with: - deployment_id: ${{ steps.deployment.outputs.deployment_id }} - token: "${{ github.token }}" - target_url: https://jeroen-meijer.github.io/shiritori/ - environment: production - status: in_progress - - name: Publish - id: publish - if: steps.build.conclusion == 'success' uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ${{ env.BUILD_DIR }} - - name: Set deployment status to success - if: steps.publish.conclusion == 'success' - uses: chrnorm/deployment-action@releases/v1 - with: - deployment_id: ${{ steps.deployment.outputs.deployment_id }} - token: "${{ github.token }}" - target_url: https://jeroen-meijer.github.io/shiritori/ - environment: production - status: success - - - name: Set deployment status to failure - if: steps.publish.conclusion == 'failure' || steps.build.conclusion == 'failure' - uses: chrnorm/deployment-action@releases/v1 - with: - deployment_id: ${{ steps.deployment.outputs.deployment_id }} - token: "${{ github.token }}" - target_url: https://jeroen-meijer.github.io/shiritori/ - environment: production - status: failure - - name: Upload artifacts - if: steps.build.conclusion == 'success' uses: actions/upload-artifact@v2 continue-on-error: true with: