Skip to content

Commit

Permalink
Revert "ci: remove unnecessary environment variable and job output (#130
Browse files Browse the repository at this point in the history
)"

This reverts commit a17d2c4.
  • Loading branch information
voice0726 committed Feb 24, 2025
1 parent a17d2c4 commit 44e61a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/actions/deploy/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
outputs:
url:
description: URL of deployed preview
value: ${{ steps.deploy.outputs.url }}

inputs:
VERCEL_ORG_ID:
description: vercel organization id
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy-non-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
name: Deploy preview
runs-on: ubuntu-latest
if: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release-please') }}
environment:
name: url
url: ${{ steps.deploy.outputs.url }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -31,6 +34,9 @@ jobs:
deploy-staging:
name: Deploy staging
runs-on: ubuntu-latest
environment:
name: preview
url: ${{ steps.deploy.outputs.url }}
if: ${{ github.ref_name == 'main' }}
steps:
- name: Checkout
Expand Down

0 comments on commit 44e61a2

Please # to comment.