Create brave-sloths-film.md #2207
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
jobs: | |
deployment: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files | |
id: storybook-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: packages/components/src/components/** | |
- name: Run step if any file(s) in the docs folder change | |
if: steps.storybook-files.outputs.any_changed == 'true' | |
run: | | |
echo "One or more files has changed." | |
echo "List all the files that have changed: ${{ steps.storybook-files.outputs.all_changed_files }}" | |
- uses: the-guild-org/shared-config/setup@main | |
name: setup env | |
with: | |
nodeVersion: 20 | |
packageManager: pnpm | |
- uses: the-guild-org/shared-config/website-cf@main | |
if: steps.storybook-files.outputs.any_changed == 'true' | |
name: build and deploy storybook | |
with: | |
cloudflareApiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
cloudflareAccountId: ${{ secrets.CF_ACCOUNT_ID }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
projectName: the-guild-docs-storybook | |
prId: ${{ github.event.pull_request.number }} | |
mainBranch: main | |
websiteDirectory: ./ | |
buildScript: pnpm build-storybook | |
artifactDir: storybook-static | |
commentId: storybook-deployment | |
commentTitle: 📚 Storybook Deployment |