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",