From 1b1923d741bfbb08315ec3c529a59b00edb074b2 Mon Sep 17 00:00:00 2001 From: buck Date: Tue, 13 Feb 2024 15:05:12 -0600 Subject: [PATCH] fix: use official github action --- .github/workflows/deploy.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ef5ed21..a9bbafc2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy on: push: tags: - - '**' + - '@caravan/coordinator**' permissions: contents: write @@ -12,6 +12,11 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest + # To use Turborepo Remote Caching + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + steps: - name: Checkout Repo uses: actions/checkout@v3 @@ -19,5 +24,11 @@ jobs: - name: Install dependencies run: npm install - - name: Deploy - run: npx turbo run deploy + - name: Build + run: npx turbo run build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + folder: ./apps/caravan-coordinator/build