Skip to content

Commit

Permalink
chore: remove all yml processing and files
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Oct 28, 2024
1 parent 15e562a commit 1c94841
Show file tree
Hide file tree
Showing 116 changed files with 44 additions and 25,513 deletions.
6 changes: 3 additions & 3 deletions .github/GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ _to-do_: This needs to diff the actual content of the files as well. Right now w
Runs stylelint or eslint if any relevant assets have been updated in this PR.
##### 📝 Publish site
##### 📝 Publish documentation site
After the build and visual regression tests have passed, this will build the docs site and publish it to Netlify.
After the build and visual regression tests have passed, this will build the documentation site and publish it to Netlify.
##### 📸 Visual regression testing
Expand All @@ -93,7 +93,7 @@ Builds the `main` branch and outputs the compiled assets as artifacts.
##### 📝 2. Publish site
Publish the docs site to Netlify.
Publish the documentation site to Netlify.
##### 📸 3. Visual regression testing
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,9 @@ jobs:
# -------------------------------------------------------------
publish_site:
name: Publish
# The build step ensures we are leveraging the cache for the build
needs: [vrt]
# Note: the goal here is to allow vrt to be skipped but still require the build to succeed
if: ${{ always() }}
uses: ./.github/workflows/publish-site.yml
with:
deploy-message: ${{ github.event.pull_request.title }}
alias: pr-${{ github.event.number }}
# Only pass the storybook url if the vrt was successful
storybook-url: ${{ needs.vrt.outputs.storybook-url || '' }}
docs-only: false
secrets: inherit
5 changes: 1 addition & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ name: Build and verify production
# - Publish the PR branch to Netlify
# -------------------------------------------------------------


on:
push:
branches: [main, spectrum-two]
Expand Down Expand Up @@ -62,11 +61,9 @@ jobs:
# -------------------------------------------------------------
publish_site:
name: Publish
# The build step ensures we are leveraging the cache for the build
needs: [vrt]
uses: ./.github/workflows/publish-site.yml
with:
storybook-url: ${{ needs.vrt.outputs.storybook-url || '' }}
docs-only: true
secrets: inherit

todo_to_issue:
Expand Down
29 changes: 19 additions & 10 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,30 @@ name: Publish documentation
on:
workflow_dispatch:
inputs:
docs-only:
description: 'Only publish the documentation'
required: true
default: false
type: boolean
deploy-message:
required: false
type: string
alias:
required: false
type: string
storybook-url:
required: false
type: string
default: ''
workflow_call:
inputs:
docs-only:
description: 'Only publish the documentation'
required: true
default: false
type: boolean
deploy-message:
required: false
type: string
alias:
required: false
type: string
storybook-url:
required: false
type: string
default: ''

permissions:
contents: read
Expand All @@ -40,6 +42,7 @@ jobs:
publish_site:
name: Publish
runs-on: ubuntu-latest
environment: ${{ inputs.docs-only && 'production' || 'development' }}
timeout-minutes: 10
steps:
## --- SETUP --- ##
Expand Down Expand Up @@ -75,9 +78,15 @@ jobs:
run: yarn install --immutable

## --- BUILD --- ##
- name: Build site
- name: Build docs-only storybook
if: ${{ inputs.docs-only }}
shell: bash
run: yarn build:docs:prod

- name: Build development storybook
if: ${{ !inputs.docs-only }}
shell: bash
run: yarn build:site
run: yarn build:docs

## --- DEPLOY WEBSITE TO NETLIFY --- ##
- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
exitOnceUploaded: true
onlyChanged: true
traceChanged: true
untraced: ".github/actions/*/package.json site/package.json generator/package.json"
untraced: ".github/actions/*/package.json generator/package.json"
diagnostics: true
autoAcceptChanges: "main"
# Lets VRT pass without running so as not to waste snapshots
Expand Down
15 changes: 0 additions & 15 deletions .storybook/deprecated/cyclebutton/cyclebutton.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .storybook/deprecated/quickaction/quickaction.yml

This file was deleted.

104 changes: 0 additions & 104 deletions .storybook/deprecated/searchwithin/searchwithin.yml

This file was deleted.

76 changes: 0 additions & 76 deletions .storybook/deprecated/splitbutton/splitbutton.yml

This file was deleted.

Loading

0 comments on commit 1c94841

Please sign in to comment.