From ee84c4572997ba12ed52387850cf8b4f5d145163 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Mon, 7 Oct 2024 00:30:48 -0400 Subject: [PATCH] build: replace gha with deploy script --- .github/workflows/deploy.yml | 16 ---------------- .gitignore | 2 ++ .yarnrc.yml | 5 +++++ package.json | 7 +++++++ yarn.lock | 12 ++++++++++++ 5 files changed, 26 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 .yarnrc.yml create mode 100644 package.json create mode 100644 yarn.lock diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 17ab0e1..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,16 +0,0 @@ -on: - push: - branches: - master - -jobs: - deploy: - name: Deploy site - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy --project-name=profile-page . diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b598bb3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.pnp.* +.yarn/* diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..5c85484 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,5 @@ +nodeLinker: pnpm +enableGlobalCache: false +enableMirror: false +globalFolder: .yarn/berry +yarnPath: .yarn/releases/yarn-4.5.0.cjs diff --git a/package.json b/package.json new file mode 100644 index 0000000..9475528 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "private": true, + "packageManager": "yarn@4.5.0", + "scripts": { + "deploy": "yarn dlx wrangler pages deploy --project-name profile-page ." + } +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..11cbfd1 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,12 @@ +# This file is generated by running "yarn install" inside your project. +# Manual changes might be lost - proceed with caution! + +__metadata: + version: 8 + cacheKey: 10c0 + +"root-workspace-0b6124@workspace:.": + version: 0.0.0-use.local + resolution: "root-workspace-0b6124@workspace:." + languageName: unknown + linkType: soft