From d0810dfca498a1e9dad346b304fc2e15a00d272c Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Sat, 3 Aug 2024 14:43:24 -0400 Subject: [PATCH] tweaks --- .github/workflows/build-preview.yml | 4 +--- .../{deploy-prod.yml => deploy-docs.yml} | 15 ++++----------- .github/workflows/deploy-preview.yml | 4 ++-- 3 files changed, 7 insertions(+), 16 deletions(-) rename .github/workflows/{deploy-prod.yml => deploy-docs.yml} (77%) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index ae83f89..91b68ea 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -15,8 +15,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: node-version: 20 @@ -32,4 +30,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: preview-build - path: build + path: sites/docs/.svelte-kit/cloudflare diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-docs.yml similarity index 77% rename from .github/workflows/deploy-prod.yml rename to .github/workflows/deploy-docs.yml index 14104c0..820f614 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,11 +1,6 @@ -name: Production Deployment +name: Deploy Docs on: - push: - branches: - - main - paths: - - sites/docs/** - - packages/runed/** + workflow_dispatch: jobs: deploy-production: @@ -13,12 +8,10 @@ jobs: permissions: contents: read deployments: write - name: Deploy Production Site to Cloudflare Pages + name: Manual Docs Deployment steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: node-version: 20 @@ -27,7 +20,7 @@ jobs: - name: Install dependencies run: pnpm install - - name: Build site + - name: Build package & site run: pnpm build - name: Deploy to Cloudflare Pages diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index ab3609a..81c8333 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -19,6 +19,7 @@ jobs: steps: - name: Download build artifact uses: actions/download-artifact@v4 + id: preview-build-artifact with: name: preview-build path: build @@ -32,6 +33,5 @@ jobs: accountId: ${{ secrets.CF_ACCOUNT_ID }} githubToken: ${{ secrets.GITHUB_TOKEN }} projectName: runed - directory: ./.svelte-kit/cloudflare - workingDirectory: sites/docs deploymentName: Preview + directory: ${{ steps.preview-build-artifact.outputs.download-path }}