Skip to content

Commit

Permalink
fix: deploy-dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrunton committed Aug 17, 2024
1 parent bd63537 commit cb4a082
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: deploy-dev
on:
workflow_dispatch:

concurrency: ${{ github.head_ref }}
concurrency: ${{ github.head_ref || github.ref_name }}

jobs:

build-api:
uses: jbrunton/workflows/.github/workflows/build-image.yml@develop
with:
Expand All @@ -22,14 +21,14 @@ jobs:
deploy-app:
environment:
name: Development
url: https://chat-demo-${{ github.head_ref }}.dev.jbrunton-aws.com
url: https://chat-demo-$${{ github.head_ref || github.ref_name }}.dev.jbrunton-aws.com
needs: [build-api]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Client
env:
VITE_API_URL: https://chat-demo-api-${{ github.head_ref }}.dev.jbrunton-aws.com
VITE_API_URL: https://chat-demo-api-${{ github.head_ref || github.ref_name }}.dev.jbrunton-aws.com
run: |
npm ci
npm run build
Expand All @@ -39,7 +38,7 @@ jobs:
- uses: pulumi/actions@v3
with:
command: up
stack-name: ${{ github.head_ref }}
stack-name: ${{ github.head_ref || github.ref_name }}
upsert: true
work-dir: pulumi
comment-on-pr: true
Expand Down

0 comments on commit cb4a082

Please sign in to comment.