From 5a361011f14f82e851e162747906086646d1b771 Mon Sep 17 00:00:00 2001 From: Lionello Lunesu Date: Tue, 18 Aug 2026 10:40:42 -0700 Subject: [PATCH] feat(workflow): surface deployed endpoints on the GitHub run Wire the deploy step's `environment.url` to a new `endpoint` output from the Defang action, and enable `summary: true` so the action writes a services table to the job summary. Replaces the separate `services` step, whose output was buried in the collapsed action log. Depends on the `summary` input / `endpoint` output landing in DefangLabs/defang-github-action (degrades gracefully until then). Co-Authored-By: Claude Opus 4.8 --- templates/defang.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/templates/defang.yaml b/templates/defang.yaml index 873813f37..8b87c5803 100644 --- a/templates/defang.yaml +++ b/templates/defang.yaml @@ -21,7 +21,9 @@ on: jobs: defang: name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} - environment: defang-${{ github.event.inputs.stack || 'production' }} + environment: + name: defang-${{ github.event.inputs.stack || 'production' }} + url: ${{ steps.deploy.outputs.endpoint }} runs-on: ubuntu-latest timeout-minutes: 70 permissions: @@ -37,13 +39,9 @@ jobs: uses: actions/checkout@v4 - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + id: deploy uses: DefangLabs/defang-github-action@v2 with: command: ${{ github.event.inputs.action || 'up' }} stack: ${{ github.event.inputs.stack || '' }} - - - name: Deployment Summary - uses: DefangLabs/defang-github-action@v2 - with: - command: services - stack: ${{ github.event.inputs.stack || '' }} + summary: ${{ (github.event.inputs.action || 'up') != 'down' }}