Skip to content

Commit

Permalink
fix: environment vars for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Feb 15, 2024
1 parent 888b3bb commit 248aaf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Deploy

on:
push:
tags:
- '@caravan/coordinator**'
branches:
- main
# on:
# push:
# tags:
# - '@caravan/coordinator**'
# branches:
# - main
on: [push, pull_request]

permissions:
contents: write
Expand All @@ -18,6 +19,7 @@ jobs:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
GITHUB_PAGES: true

steps:
- name: Checkout Repo
Expand All @@ -36,7 +38,8 @@ jobs:
# so we have to copy it to the root of the repo.
- name: Build
run: |
npx turbo run build
echo ${{ env.GITHUB_PAGES }}
GH_PAGES=true npx turbo run build
cp -R apps/coordinator ./build
- name: Deploy to GitHub Pages
Expand Down
4 changes: 2 additions & 2 deletions apps/coordinator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caravan/coordinator",
"version": "0.0.3",
"version": "0.0.2",
"description": "Unchained Capital's Bitcoin Multisig Coordinator Application",
"main": "index.jsx",
"private": true,
Expand Down Expand Up @@ -69,7 +69,7 @@
"build:ci": "npm run ci && tsc && __GIT_SHA__=`git rev-parse --short HEAD` vite build",
"check": "npm run lint && npm run test:ci",
"ci": "npm run lint && npm run test:ci",
"deploy": "gh-pages -d build",
"deploy": "GH_PAGES=true gh-pages -d build",
"gh-pages": "CI=true npm run build && gh-pages -d build",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src/",
"predeploy": "npm run build",
Expand Down

0 comments on commit 248aaf5

Please sign in to comment.