forked from tapexyz/tape
-
Notifications
You must be signed in to change notification settings - Fork 1
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
3 changed files
with
120 additions
and
120 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 |
---|---|---|
@@ -1,59 +1,59 @@ | ||
name: APPS - Preview Deployment 👀 | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID_WEB: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
VERCEL_PROJECT_ID_EMBED: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
VERCEL_PROJECT_ID_OG: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
# name: APPS - Preview Deployment 👀 | ||
# env: | ||
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
# VERCEL_PROJECT_ID_WEB: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
# VERCEL_PROJECT_ID_EMBED: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
# VERCEL_PROJECT_ID_OG: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to deploy' | ||
required: true | ||
# on: | ||
# workflow_dispatch: | ||
# inputs: | ||
# branch: | ||
# description: 'Branch to deploy' | ||
# required: true | ||
|
||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
# jobs: | ||
# Deploy-Preview: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# ref: ${{ github.event.inputs.branch }} | ||
# - name: Setup Bun | ||
# uses: oven-sh/setup-bun@v1 | ||
# with: | ||
# bun-version: latest | ||
|
||
- name: Install Vercel CLI | ||
run: bun install --global vercel@latest | ||
# - name: Install Vercel CLI | ||
# run: bun install --global vercel@latest | ||
|
||
- name: Deploy to Vercel ・ WEB | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
run: | | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" | ||
if [ "${{ github.event.inputs.branch }}" == "testnet" ]; then | ||
vercel alias --token=${{ secrets.VERCEL_TOKEN }} set "$url" testnet.tape.xyz | ||
fi | ||
# - name: Deploy to Vercel ・ WEB | ||
# env: | ||
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
# run: | | ||
# vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
# url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" | ||
# if [ "${{ github.event.inputs.branch }}" == "testnet" ]; then | ||
# vercel alias --token=${{ secrets.VERCEL_TOKEN }} set "$url" testnet.tape.xyz | ||
# fi | ||
|
||
- name: Deploy to Vercel ・ EMBED | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
run: | | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" | ||
if [ "${{ github.event.inputs.branch }}" == "testnet" ]; then | ||
vercel alias --token=${{ secrets.VERCEL_TOKEN }} set "$url" embed-testnet.tape.xyz | ||
fi | ||
# - name: Deploy to Vercel ・ EMBED | ||
# env: | ||
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
# run: | | ||
# vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
# url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" | ||
# if [ "${{ github.event.inputs.branch }}" == "testnet" ]; then | ||
# vercel alias --token=${{ secrets.VERCEL_TOKEN }} set "$url" embed-testnet.tape.xyz | ||
# fi | ||
|
||
- name: Deploy to Vercel ・ OG | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
run: | | ||
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||
# - name: Deploy to Vercel ・ OG | ||
# env: | ||
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
# run: | | ||
# vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||
|
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,31 +1,31 @@ | ||
name: WORKERS - Production Deployment | ||
# name: WORKERS - Production Deployment | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
# on: | ||
# push: | ||
# branches: [main] | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Bun 🥟 | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
# jobs: | ||
# deploy: | ||
# name: Deploy | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Setup Bun 🥟 | ||
# uses: oven-sh/setup-bun@v1 | ||
# with: | ||
# bun-version: latest | ||
|
||
- name: Install dependencies 🧳 | ||
run: bun install | ||
# - name: Install dependencies 🧳 | ||
# run: bun install | ||
|
||
- name: Check Lint 💅🏻 | ||
run: bun lint && bun typecheck | ||
# - name: Check Lint 💅🏻 | ||
# run: bun lint && bun typecheck | ||
|
||
- name: Deploy 🚀 | ||
run: | | ||
bun install --global wrangler | ||
bun api:deploy | ||
env: | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# - name: Deploy 🚀 | ||
# run: | | ||
# bun install --global wrangler | ||
# bun api:deploy | ||
# env: | ||
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
# CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |
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,49 +1,49 @@ | ||
name: APPS - Production Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID_WEB: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
VERCEL_PROJECT_ID_EMBED: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
VERCEL_PROJECT_ID_OG: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
# name: APPS - Production Deployment | ||
# env: | ||
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
# VERCEL_PROJECT_ID_WEB: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
# VERCEL_PROJECT_ID_EMBED: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
# VERCEL_PROJECT_ID_OG: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
# on: | ||
# push: | ||
# branches: [main] | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
Deploy-Production: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
# jobs: | ||
# Deploy-Production: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Setup Bun | ||
# uses: oven-sh/setup-bun@v1 | ||
# with: | ||
# bun-version: latest | ||
|
||
- name: Install Vercel CLI | ||
run: bun install --global vercel@latest | ||
# - name: Install Vercel CLI | ||
# run: bun install --global vercel@latest | ||
|
||
- name: Deploy to Vercel ・ WEB | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
run: | | ||
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
# - name: Deploy to Vercel ・ WEB | ||
# env: | ||
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB }} | ||
# run: | | ||
# vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy to Vercel ・ EMBED | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
run: | | ||
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
# - name: Deploy to Vercel ・ EMBED | ||
# env: | ||
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_EMBED }} | ||
# run: | | ||
# vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy to Vercel ・ OG | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
run: | | ||
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
# - name: Deploy to Vercel ・ OG | ||
# env: | ||
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_OG }} | ||
# run: | | ||
# vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
# vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
|