From 0a763a65dbe1dcbc64538c81b92810639da94dc7 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:02:18 -0400 Subject: [PATCH] chore: remove previews (#1223) --- .github/workflows/docs-preview.yml | 69 ------------------------------ 1 file changed, 69 deletions(-) delete mode 100644 .github/workflows/docs-preview.yml diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml deleted file mode 100644 index 01b0e8732..000000000 --- a/.github/workflows/docs-preview.yml +++ /dev/null @@ -1,69 +0,0 @@ -#################### 🚧 WARNING: READ THIS BEFORE USING THIS FILE 🚧 #################### -# -# -# -# IF YOU DON'T KNOW WHAT YOU'RE DOING, YOU CAN EASILY LEAK SECRETS BY USING A -# `pull_request_target` WORKFLOW INSTEAD OF `pull_request`! SERIOUSLY, DO NOT -# BLINDLY COPY AND PASTE THIS FILE WITHOUT UNDERSTANDING THE FULL IMPLICATIONS -# OF WHAT YOU'RE DOING! WE HAVE TESTED THIS FOR OUR OWN USE CASES, WHICH ARE -# NOT NECESSARILY THE SAME AS YOURS! WHILE WE AREN'T EXPOSING ANY OF OUR SECRETS, -# ONE COULD EASILY DO SO BY MODIFYING OR ADDING A STEP TO THIS WORKFLOW! -# -# -# -#################### 🚧 WARNING: READ THIS BEFORE USING THIS FILE 🚧 #################### - -name: Docs - Preview Deployment -on: - pull_request_target: - paths: - - sites/docs/** - -# cancel in-progress runs on new commits to same PR (github.event.number) -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: true - -jobs: - deploy-preview: - permissions: - contents: read - pull-requests: write - deployments: write - runs-on: ubuntu-latest - name: Deploy Preview to Cloudflare Pages - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm - - # Image cache setup - - name: Setup Image cache - uses: actions/cache@v3 - with: - path: "**/node_modules/.cache/imagetools" - key: ${{ runner.os }}-image-cache-${{ hashFiles('**/src/lib/img') }} - - - name: Install dependencies - run: pnpm install - - - name: Build site - run: pnpm build - - - name: Deploy to Cloudflare Pages - id: cloudflare-pages-deploy - uses: AdrianGonz97/refined-cf-pages-action@v1 - with: - apiToken: ${{ secrets.CF_API_TOKEN }} - accountId: ${{ secrets.CF_ACCOUNT_ID }} - githubToken: ${{ secrets.GITHUB_TOKEN }} - projectName: shadcn-svelte - directory: ./.svelte-kit/cloudflare - workingDirectory: sites/docs - deploymentName: Preview