-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
122 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Deploy Bottle to Vercel | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Run Turbo Tasks"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
Deploy-Bottle: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# checkout and setup (이전 워크플로우에서 이미 설치한 pnpm 등을 재설치할 필요 없음) | ||
- uses: actions/checkout@v4 | ||
|
||
# deploy Bottle to vercel | ||
- name: Deploy Bottle to Vercel | ||
run: | | ||
npm install --global vercel@latest | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel deploy --prebuilt --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
- name: Get Bottle Preview | ||
uses: zentered/[email protected] | ||
id: vercel_preview_url | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
with: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BOTTLE }} | ||
- name: Get Bottle preview URL | ||
run: echo "https://${{ steps.vercel_preview_url.outputs.preview_url }}" | ||
- name: Send Bottle Discord Notification | ||
env: | ||
DATA: | | ||
{ | ||
"content": "<@stakbucks>", | ||
"embeds": [ | ||
{ | ||
"title": "👀 Bottle 미리보기가 준비되었어요", | ||
"description": "👉 https://${{ steps.vercel_preview_url.outputs.preview_url }}", | ||
"color": 65280 | ||
} | ||
] | ||
} | ||
run: | | ||
curl -X POST -H 'Content-type: application/json' \ | ||
-d "$DATA" \ | ||
${{ secrets.DISCORD_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Deploy Web to Vercel | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Run Turbo Tasks"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
Deploy-Web: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# checkout and setup (이전 워크플로우에서 이미 설치한 pnpm 등을 재설치할 필요 없음) | ||
- uses: actions/checkout@v4 | ||
|
||
# deploy Web to vercel | ||
- name: Deploy Web to Vercel | ||
run: | | ||
npm install --global vercel@latest | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel deploy --prebuilt --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
- name: Get Web Preview | ||
uses: zentered/[email protected] | ||
id: vercel_preview_url_web | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
with: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }} | ||
- name: Get Web preview URL | ||
run: echo "https://${{ steps.vercel_preview_url_web.outputs.preview_url }}" | ||
- name: Send Web Discord Notification | ||
env: | ||
DATA: | | ||
{ | ||
"content": "<@stakbucks>", | ||
"embeds": [ | ||
{ | ||
"title": "👀 Web 미리보기가 준비되었어요", | ||
"description": "👉 https://${{ steps.vercel_preview_url_web.outputs.preview_url }}", | ||
"color": 65280 | ||
} | ||
] | ||
} | ||
run: | | ||
curl -X POST -H 'Content-type: application/json' \ | ||
-d "$DATA" \ | ||
${{ secrets.DISCORD_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Preview Deployment - Bottle | ||
name: Run Turbo Tasks | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BOTTLE }} | ||
|
@@ -51,22 +51,22 @@ jobs: | |
- run: pnpm run ci | ||
|
||
# deploy Bottle to vercel | ||
- name: Deploy to Vercel if needed | ||
- name: Deploy Bottle to Vercel | ||
run: | | ||
npm install --global vercel@latest | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel deploy --prebuilt --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
- name: Get Vercel Preview | ||
- name: Get Bottle Preview | ||
uses: zentered/[email protected] | ||
id: vercel_preview_url | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
with: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BOTTLE }} | ||
- name: Get URL | ||
- name: Get Bottle preview URL | ||
run: echo "https://${{ steps.vercel_preview_url.outputs.preview_url }}" | ||
- name: Send Discord Notification | ||
- name: Send Bottle Discord Notification | ||
env: | ||
DATA: | | ||
{ | ||
|
@@ -86,21 +86,21 @@ jobs: | |
# deploy Web to vercel | ||
|
||
- name: Deploy to Vercel if needed | ||
- name: Deploy Web to Vercel | ||
run: | | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
vercel deploy --prebuilt --token=${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
- name: Get Vercel Preview | ||
- name: Get Web Preview | ||
uses: zentered/[email protected] | ||
id: vercel_preview_url_web | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} | ||
with: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }} | ||
- name: Get URL | ||
- name: Get Web preview URL | ||
run: echo "https://${{ steps.vercel_preview_url_web.outputs.preview_url }}" | ||
- name: Send Discord Notification | ||
- name: Send Web Discord Notification | ||
env: | ||
DATA: | | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters