diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 18fb511e..e80d5caa 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -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 @@ -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 diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index b2e89559..5a988b17 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -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 @@ -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 @@ -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 diff --git a/.gitignore b/.gitignore index e985853e..83baf963 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .vercel +.env \ No newline at end of file