Skip to content

Commit

Permalink
Merge pull request #7 from emnnipal/develop
Browse files Browse the repository at this point in the history
chore: create release
  • Loading branch information
emnnipal authored Oct 8, 2022
2 parents e9e948f + 7c6b68c commit 0799775
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ jobs:
vercel-org-id: ${{ secrets.org_id}}
vercel-project-id: ${{ secrets.project_id}}
working-directory: ./
alias-domains: "${{ contains(inputs.branch, 'develop') && 'develop-t3-stack-app.vercel.app' || '' }}"
# set develop or staging url alias
alias-domains: |
${{
contains(inputs.branch, 'develop') && 'develop-t3-stack-app.vercel.app' ||
contains(inputs.branch, 'staging') && 'staging-t3-stack-app.vercel.app'
}}
- name: Set Vercel Deployment URL
id: get_url
Expand All @@ -97,12 +102,7 @@ jobs:
then
vercel_url="https://t3-stack-app.vercel.app"
# deploy to dev
elif [[ "${{ contains(inputs.branch, 'develop') }}" == "true" && "${{ inputs.environment }}" == 'dev' ]]
then
vercel_url="https://develop-t3-stack-app.vercel.app"
# deploy as preview
# deploy as preview or dev
else
vercel_url="${{ steps.vercel_deploy.outputs.preview-url }}"
fi
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
- name: Check Types
run: pnpm check:types

deploy-preview:
name: Create Deploy Preview
pr-deploy-preview:
if: github.event.pull_request.base.ref == 'develop'
needs: [pr-lint-and-test, pr-check-types]
uses: ./.github/workflows/deploy-action.yml
Expand Down

0 comments on commit 0799775

Please sign in to comment.