From 3efceb1a883d26af85ac03155b77a0ce3f59a0fc Mon Sep 17 00:00:00 2001 From: buck Date: Thu, 15 Feb 2024 10:28:40 -0600 Subject: [PATCH] fix: environment vars and build directory for deploy --- .github/workflows/deploy.yml | 13 ++++++------- apps/coordinator/package.json | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c52feb34..8da8f287 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,10 +14,8 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest - # To use Turborepo Remote Caching env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ vars.TURBO_TEAM }} + GITHUB_PAGES: true steps: - name: Checkout Repo @@ -35,12 +33,13 @@ jobs: # sub directory of the monorepo, even if we reference it correctly # so we have to copy it to the root of the repo. - name: Build - run: | - npx turbo run build - cp -R apps/coordinator ./build + # forcing a build to avoid the cache. Probably unnecessary + # but useful in case any environment variables change that might + # impact the build + run: npx turbo run build --force - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages - folder: build + folder: apps/coordinator/build diff --git a/apps/coordinator/package.json b/apps/coordinator/package.json index edb6c59a..f7c3e3ff 100644 --- a/apps/coordinator/package.json +++ b/apps/coordinator/package.json @@ -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, @@ -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",