From fc6cae4d4eace848e065fe99cc426702efba162c Mon Sep 17 00:00:00 2001 From: Nigel Breslaw Date: Tue, 23 Jan 2024 13:21:42 +0200 Subject: [PATCH] Deploy main site --- .github/workflows/deploy-gg-web.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/deploy-gg-web.yml diff --git a/.github/workflows/deploy-gg-web.yml b/.github/workflows/deploy-gg-web.yml new file mode 100644 index 000000000..7b818c183 --- /dev/null +++ b/.github/workflows/deploy-gg-web.yml @@ -0,0 +1,34 @@ +on: + push: + paths: + - 'gg-mono/apps/react-frontend/**' +jobs: + deploy: + runs-on: ubuntu-latest + env: + TURBO_URL: ${{ secrets.TURBO_URL }} + TURBO_CODE: ${{ secrets.TURBO_CODE }} + defaults: + run: + working-directory: gg-mono + permissions: + contents: read + deployments: write + name: Deploy + steps: + - uses: actions/checkout@v4.1.1 + - uses: pnpm/action-setup@v2.4.0 + with: + version: 8.14.1 + - name: install dependencies + run: pnpm install --frozen-lockfile + - name: build + run: cd apps/react-frontend && pnpm build:ci + - name: deploy dashboard + uses: cloudflare/pages-action@v1.5.0 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: gg-app + directory: gg-mono/apps/react-frontend/dist # e.g. 'dist' + gitHubToken: ${{ secrets.GITHUB_TOKEN }}