From 6ce0319695be3e622370745d3cdf3c58b7fc8b4f Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Fri, 5 Jul 2024 19:39:19 +0200 Subject: [PATCH] chore: disable netlify deploy * 2 --- .github/workflows/main.yml | 78 ++++++++++----------- .github/workflows/pull-request.yml | 106 ++++++++++++++--------------- 2 files changed, 92 insertions(+), 92 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 198cc1cf..db82569d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -94,45 +94,45 @@ jobs: autoAcceptChanges: true projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} -# deploy-docs: -# name: 'Deploy Latest documentation' -# needs: publish -# if: needs.publish.outputs.published == 'true' -# runs-on: ubuntu-latest -# environment: -# name: Docs Production -# url: ${{ steps.publish_docs.outputs.NETLIFY_PREVIEW_URL }} -# env: -# NODE_OPTIONS: --max-old-space-size=4096 -# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} -# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} -# steps: -# - uses: actions/checkout@v2 -# -# - name: Install pnpm -# uses: pnpm/action-setup@v2 -# with: -# version: 8 -# -# - uses: actions/cache@v2 -# name: Download storybook cache -# with: -# path: | -# **/node_modules/.cache -# key: ${{ runner.os }}-storybook-${{ github.run_id }} -# restore-keys: | -# ${{ runner.os }}-storybook -# -# - uses: actions/setup-node@v3 -# with: -# node-version-file: '.nvmrc' -# cache: 'pnpm' -# -# - name: Install dependencies -# run: pnpm install -# -# - name: Build Docs -# run: pnpm build-docs --quiet + build-docs: + name: 'Deploy Latest documentation' + needs: publish + if: needs.publish.outputs.published == 'true' + runs-on: ubuntu-latest + environment: + name: Docs Production + url: ${{ steps.publish_docs.outputs.NETLIFY_PREVIEW_URL }} + env: + NODE_OPTIONS: --max-old-space-size=4096 + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + steps: + - uses: actions/checkout@v2 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - uses: actions/cache@v2 + name: Download storybook cache + with: + path: | + **/node_modules/.cache + key: ${{ runner.os }}-storybook-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-storybook + + - uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build Docs + run: pnpm build-docs --quiet # - name: Deploy docs to Netlify # uses: South-Paw/action-netlify-deploy@v1.2.1 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index cc5ac70b..f003d4a9 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -171,42 +171,42 @@ jobs: prNumber: context.payload.pull_request.number }) -# deploy-docs: -# name: 'Prepare Docs for the Review' -# runs-on: ubuntu-latest -# environment: -# name: Docs staging -# url: ${{ steps.publish_docs.outputs.preview-url }} -# env: -# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} -# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} -# steps: -# - uses: actions/checkout@v2 -# -# - name: Install pnpm -# uses: pnpm/action-setup@v2 -# with: -# version: 8 -# -# - uses: actions/cache@v2 -# name: Download storybook cache -# with: -# path: | -# **/node_modules/.cache -# key: ${{ runner.os }}-storybook-${{ github.run_id }} -# restore-keys: | -# ${{ runner.os }}-storybook -# -# - uses: actions/setup-node@v3 -# with: -# node-version-file: '.nvmrc' -# cache: 'pnpm' -# -# - name: Install dependencies -# run: pnpm install -# -# - name: Build Docs -# run: pnpm build-docs --quiet + build-docs: + name: 'Prepare Docs for the Review' + runs-on: ubuntu-latest + environment: + name: Docs staging + url: ${{ steps.publish_docs.outputs.preview-url }} + env: + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + steps: + - uses: actions/checkout@v2 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - uses: actions/cache@v2 + name: Download storybook cache + with: + path: | + **/node_modules/.cache + key: ${{ runner.os }}-storybook-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-storybook + + - uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build Docs + run: pnpm build-docs --quiet # - name: Deploy docs to Netlify # id: publish_docs @@ -218,20 +218,20 @@ jobs: # draft: true # build-dir: ./storybook-docs # comment-on-commit: true - - - name: Comment PR - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const setMessage = require('${{ github.workspace }}/scripts/ci/set-message') - - await setMessage({ - header: "## 🏗 Docs are successfully deployed!", - body: ` - 👀 Preview: ${{ steps.publish_docs.outputs.preview-url }} - `, - github, - repo: context.repo, - prNumber: context.payload.pull_request.number - }) +# +# - name: Comment PR +# uses: actions/github-script@v6 +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} +# script: | +# const setMessage = require('${{ github.workspace }}/scripts/ci/set-message') +# +# await setMessage({ +# header: "## 🏗 Docs are successfully deployed!", +# body: ` +# 👀 Preview: ${{ steps.publish_docs.outputs.preview-url }} +# `, +# github, +# repo: context.repo, +# prNumber: context.payload.pull_request.number +# })