Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vercel deploy scripts #3

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ permissions:
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
environment: Open Healthcare Network
environment:
name: Preview
url: ${{ steps.deploy.outputs.deployment_url }}
steps:
- name: Checkout Leaderboard
uses: actions/checkout@v4
Expand Down Expand Up @@ -49,4 +51,7 @@ jobs:
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
id: deploy
run: |
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > url
echo "deployment_url=$(cat url)" >> $GITHUB_OUTPUT
12 changes: 7 additions & 5 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:
jobs:
Deploy-Production:
runs-on: ubuntu-latest
environment: Open Healthcare Network
environment:
name: Open Healthcare Network
url: ${{ steps.deploy.outputs.deployment_url }}
steps:
- name: Checkout Leaderboard
uses: actions/checkout@v4
Expand All @@ -22,9 +24,6 @@ jobs:
uses: actions/checkout@v4
with:
path: ./data-repo
sparse-checkout: |
data
contributors

- name: Remove existing files if any (temperory)
run: rm -rf ./data ./contributors
Expand All @@ -50,4 +49,7 @@ jobs:
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
id: deploy
run: |
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} > url
echo "deployment_url=$(cat url)" >> $GITHUB_OUTPUT
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vercel
.env