Skip to content

Commit

Permalink
feat: deployed env url in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ny1am committed Jan 4, 2025
1 parent b4d9843 commit b83b7c8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
deploy:
needs: build
runs-on: ubuntu-latest
environment: netlify
environment:
name: netlify
url: ${{ steps.deploy_url.outputs.URL }}
steps:
- uses: actions/checkout@v3

Expand All @@ -37,4 +39,12 @@ jobs:
--dir apps/website/dist \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
$PROD_FLAG
$PROD_FLAG \
--json \
> result.json
- name: generate deploy URL
id: deploy_url
run: |
URL=$(jq -r '.deploy_url' result.json)
echo "URL=$URL" >> "$GITHUB_OUTPUT"

0 comments on commit b83b7c8

Please sign in to comment.