Skip to content

Commit

Permalink
(Github): comment unused workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wcordelo committed Mar 2, 2024
1 parent dd10ad0 commit 1a285c2
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 120 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/cd-preview.yml
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 }}

52 changes: 26 additions & 26 deletions .github/workflows/cd-workers.yml
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 }}
84 changes: 42 additions & 42 deletions .github/workflows/cd.yml
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 }}

0 comments on commit 1a285c2

Please sign in to comment.