From 9ffacf7f6db944722140a6d8ac41bb9f1a966c15 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Thu, 26 Oct 2023 13:53:53 +0200 Subject: [PATCH] deploy auth cms to the new org --- .github/workflows/netlify-cms-auth.yml | 4 +- .github/workflows/netlify-cms-auth_old.yml | 48 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/netlify-cms-auth_old.yml diff --git a/.github/workflows/netlify-cms-auth.yml b/.github/workflows/netlify-cms-auth.yml index 8cdb9de726..1fab8663c6 100644 --- a/.github/workflows/netlify-cms-auth.yml +++ b/.github/workflows/netlify-cms-auth.yml @@ -42,7 +42,7 @@ jobs: - name: Publish uses: cloudflare/wrangler-action@2.0.0 with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: workspaces/netlify-cms-auth command: publish diff --git a/.github/workflows/netlify-cms-auth_old.yml b/.github/workflows/netlify-cms-auth_old.yml new file mode 100644 index 0000000000..8cdb9de726 --- /dev/null +++ b/.github/workflows/netlify-cms-auth_old.yml @@ -0,0 +1,48 @@ +name: Build and Deploy Netlify CMS Auth + +on: + push: + branches: + - deploy/netlify-cms-auth + +jobs: + build_and_deploy: + name: Build and Deploy + environment: "netlify-cms-auth" + permissions: + contents: read + deployments: write + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: | + .yarn/cache + .yarn/install-state.gz + .eslintcache + **/tsconfig.tsbuildinfo + **/.types/** + **/.types-*/** + key: build-cache-${{ hashFiles('yarn.lock') }} + restore-keys: | + build-cache- + + - name: Install dependencies + run: yarn + + - name: Publish + uses: cloudflare/wrangler-action@2.0.0 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + workingDirectory: workspaces/netlify-cms-auth + command: publish