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 f0add08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 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 @@ -14,10 +15,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
Expand All @@ -36,11 +35,12 @@ jobs:
# so we have to copy it to the root of the repo.
- name: Build
run: |
npx turbo run build
cp -R apps/coordinator ./build
echo ${{ env.GITHUB_PAGES }}
GH_PAGES=true npx turbo run build --force
cp -R apps/coordinator ./docs
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build
folder: docs
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 f0add08

Please sign in to comment.