Skip to content

Commit

Permalink
chore: disable netlify deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi committed Jul 5, 2024
1 parent 2f8dc44 commit 3aa6726
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 94 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,50 +94,50 @@ 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

- name: Deploy docs to Netlify
uses: South-Paw/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: ./storybook-docs
# 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

# - name: Deploy docs to Netlify
# uses: South-Paw/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
# build-dir: ./storybook-docs
94 changes: 47 additions & 47 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,53 +171,53 @@ 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

- name: Deploy docs to Netlify
id: publish_docs
uses: South-Paw/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
draft: true
build-dir: ./storybook-docs
comment-on-commit: true
# 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

# - name: Deploy docs to Netlify
# id: publish_docs
# uses: South-Paw/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
# draft: true
# build-dir: ./storybook-docs
# comment-on-commit: true

- name: Comment PR
uses: actions/github-script@v6
Expand Down

0 comments on commit 3aa6726

Please sign in to comment.