Skip to content

Commit

Permalink
Update deploy-frontend-monorepo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnecon committed Jul 11, 2024
1 parent e8ec95d commit 3399424
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-frontend-monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,20 @@ jobs:
permissions:
id-token: write
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create GitHub deployment
uses: chrnorm/deployment-action@v2
id: deployment
with:
token: '${{ github.token }}'
log-url: ${{ needs.get-environment-name.outputs.url }}
environment-url: ${{ needs.get-environment-name.outputs.url }}
environment: ${{ needs.get-environment-name.outputs.env-name }}

- name: Setup configuration
id: config
run: |
Expand Down Expand Up @@ -230,3 +240,23 @@ jobs:
sourcemaps: ${{ inputs.app-directory-name }}/build
ignore_missing: true
version: ${{ env.latest_tag }}

- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v2
with:
token: '${{ github.token }}'
environment-url: ${{ steps.deployment.outputs.environment_url }}
log-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'success'

- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: '${{ github.token }}'
environment-url: ${{ steps.deployment.outputs.environment_url }}
log-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'failure'

0 comments on commit 3399424

Please sign in to comment.