Skip to content

Commit

Permalink
Merge pull request #62 from Lilypad-Tech/ben/add-bun-to-deploy
Browse files Browse the repository at this point in the history
fix: add missing bun to deployment actions
  • Loading branch information
NadiemM authored Jul 2, 2024
2 parents fd428ea + 45ed169 commit bc09bbd
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 129 deletions.
89 changes: 46 additions & 43 deletions .github/workflows/devdeploy.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
name: Deploy to Cloudflare Pages

on:
push:
branches:
- nadiem/feat-add-metrics-page # or the branch you want to deploy from
push:
branches:
- nadiem/feat-add-metrics-page # or the branch you want to deploy from

jobs:
build:
runs-on: ubuntu-latest
environment: devdeploy

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh
- name: Set up Doppler
run: doppler configure set token ${{ secrets.DEVDEPLOY_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.DEVDEPLOY_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/info-dashboard/.next
run: |
rm -rf cache
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.DEVDEPLOY_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.DEVDEPLOY_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.DEVDEPLOY_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/info-dashboard/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main
build:
runs-on: ubuntu-latest
environment: devdeploy

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install bun
uses: oven-sh/setup-bun@v1

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20" # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh
- name: Set up Doppler
run: doppler configure set token ${{ secrets.DEVDEPLOY_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.DEVDEPLOY_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/info-dashboard/.next
run: |
rm -rf cache
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.DEVDEPLOY_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.DEVDEPLOY_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.DEVDEPLOY_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/info-dashboard/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main
89 changes: 46 additions & 43 deletions .github/workflows/devnet.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
name: Deploy to Cloudflare Pages

on:
push:
branches:
- main # or the branch you want to deploy from
push:
branches:
- main # or the branch you want to deploy from

jobs:
build:
runs-on: ubuntu-latest
environment: devnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh
- name: Set up Doppler
run: doppler configure set token ${{ secrets.DEVNET_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.DEVNET_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/info-dashboard/.next
run: |
rm -rf cache
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.DEVNET_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.DEVNET_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.DEVNET_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/info-dashboard/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main
build:
runs-on: ubuntu-latest
environment: devnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install bun
uses: oven-sh/setup-bun@v1

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20" # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh
- name: Set up Doppler
run: doppler configure set token ${{ secrets.DEVNET_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.DEVNET_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/info-dashboard/.next
run: |
rm -rf cache
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.DEVNET_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.DEVNET_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.DEVNET_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/info-dashboard/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main
89 changes: 46 additions & 43 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
name: Deploy to Cloudflare Pages

on:
push:
branches:
- main # or the branch you want to deploy from
push:
branches:
- main # or the branch you want to deploy from

jobs:
build:
runs-on: ubuntu-latest
environment: testnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh
- name: Set up Doppler
run: doppler configure set token ${{ secrets.TESTNET_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.TESTNET_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/info-dashboard/.next
run: |
rm -rf cache
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.TESTNET_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TESTNET_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.TESTNET_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/info-dashboard/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main
build:
runs-on: ubuntu-latest
environment: testnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install bun
uses: oven-sh/setup-bun@v1

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20" # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh
- name: Set up Doppler
run: doppler configure set token ${{ secrets.TESTNET_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.TESTNET_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/info-dashboard/.next
run: |
rm -rf cache
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.TESTNET_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TESTNET_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.TESTNET_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/info-dashboard/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main

0 comments on commit bc09bbd

Please sign in to comment.