From df287f8e340af7ca236134686f54fdba87c66adb Mon Sep 17 00:00:00 2001 From: Serhii Persianov Date: Thu, 31 Jul 2025 23:40:09 -0500 Subject: [PATCH] feat(G-1): update action once more --- .github/workflows/deploy-uat.yml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-uat.yml b/.github/workflows/deploy-uat.yml index 29ea947..e778a06 100644 --- a/.github/workflows/deploy-uat.yml +++ b/.github/workflows/deploy-uat.yml @@ -60,7 +60,6 @@ jobs: environment: name: uat - url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout code @@ -94,36 +93,15 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Create deployment status - uses: actions/github-script@v7 - with: - script: | - const deployment = await github.rest.repos.createDeployment({ - owner: context.repo.owner, - repo: context.repo.repo, - ref: context.sha, - environment: 'uat', - description: 'UAT deployment to GitHub Pages', - auto_merge: false, - required_contexts: [] - }); - - await github.rest.repos.createDeploymentStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - deployment_id: deployment.data.id, - state: 'success', - environment_url: '${{ steps.deployment.outputs.page_url }}', - description: 'Successfully deployed to GitHub Pages' - }); + - name: Notify deployment success if: success() run: | echo "✅ UAT deployment successful!" - echo "🌐 Live URL: ${{ steps.deployment.outputs.page_url }}" echo "📦 Build: ${{ github.sha }}" echo "🏷️ Tag: uat-${{ github.run_number }}" + echo "🌐 Check GitHub Pages for the live URL" - name: Notify deployment failure if: failure()