From f686b5bc73cec5a8c34b1a8cbd4a6ab82cdef5ad Mon Sep 17 00:00:00 2001 From: Borghild Date: Tue, 14 Jan 2025 15:23:07 +0100 Subject: [PATCH] :art: quick fix workflow --- .github/workflows/deploy-sanity-studio.yaml | 23 ++++++++++---- .github/workflows/deploy-studio/action.yaml | 33 --------------------- 2 files changed, 18 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/deploy-studio/action.yaml diff --git a/.github/workflows/deploy-sanity-studio.yaml b/.github/workflows/deploy-sanity-studio.yaml index 2dc625d..2a56df7 100644 --- a/.github/workflows/deploy-sanity-studio.yaml +++ b/.github/workflows/deploy-sanity-studio.yaml @@ -13,8 +13,21 @@ permissions: jobs: deploy: - uses: ./.github/workflows/deploy-studio/ - #with: - # environment: 'development' - secrets: - sanity_deploy_token: ${{ secrets.SANITY_DEPLOY_TOKEN }} + runs-on: ubuntu-latest + env: + SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_TOKEN }} + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Deploy Studio + run: pnpm run deploy diff --git a/.github/workflows/deploy-studio/action.yaml b/.github/workflows/deploy-studio/action.yaml deleted file mode 100644 index 050caf4..0000000 --- a/.github/workflows/deploy-studio/action.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Build and deploy studio - -on: - workflow_call: - # inputs: - # environment: - # required: true - # type: string - secrets: - sanity_deploy_token: - required: true - - deploy: - name: 'Build and deploy studio' - # environment: ${{ inputs.environment}} - runs-on: ubuntu-latest - env: - SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_TOKEN }} - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'pnpm' - - name: Install dependencies - run: pnpm install - - name: Deploy Studio - run: pnpm run deploy