Skip to content

Commit

Permalink
chore: disable netlify deploy * 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi committed Jul 5, 2024
1 parent 3aa6726 commit 6ce0319
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 92 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
106 changes: 53 additions & 53 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
# })

0 comments on commit 6ce0319

Please sign in to comment.