diff --git a/.github/scripts/deploy-app-netlify.js b/.github/scripts/deploy-app-netlify.js index 5a38c07..3aa17a2 100644 --- a/.github/scripts/deploy-app-netlify.js +++ b/.github/scripts/deploy-app-netlify.js @@ -8,7 +8,8 @@ export default async ({ core, exec, netlify }) => { const { stdout } = await exec.getExecOutput(command); const deployInfo = JSON.parse(stdout); - core.info(`\nDeployed app at url: ${deployInfo.deploy_url}`); - + deployInfo.environmentUrl = deployInfo.url || deployInfo.deploy_url; + + core.info(`\nDeployed app at url: ${deployInfo.environmentUrl}`); core.setOutput("deployInfo", deployInfo); }; diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml index df6ad22..c8f65e3 100644 --- a/.github/workflows/ci-deploy.yml +++ b/.github/workflows/ci-deploy.yml @@ -18,7 +18,7 @@ jobs: environment: name: netlify - url: ${{ steps.deploy_app.outputs.deployInfo.deployUrl }} + url: ${{ steps.deploy_app.outputs.deployInfo.environmentUrl }} steps: - name: Checkout Repository ${{ github.event.repository.name }}