Skip to content

Commit

Permalink
revert: ci: add deployment status to publish workflow
Browse files Browse the repository at this point in the history
This reverts commit 741d2f8.
  • Loading branch information
jeroen-meijer committed Jul 27, 2020
1 parent 741d2f8 commit 1a6579f
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/publish_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 1a6579f

Please sign in to comment.