Skip to content

Commit

Permalink
build: push versioned storybook builds to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Jan 17, 2025
1 parent 123ae87 commit 7d94250
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/.clear_pages_glob
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*
!versions/**/*
18 changes: 18 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,21 @@ jobs:
echo "README.md is out of date. Please run 'pnpm build' and commit the changes."
exit 1
fi
# only main
- uses: s0/[email protected]
if: github.ref == 'refs/heads/main'
with:
BRANCH: gh-pages
FOLDER: storybook-static
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLEAR_GLOBS_FILE: .github/.clear_pages_glob
# only tags
- uses: s0/[email protected]
if: github.ref == 'refs/tags/*'
with:
BRANCH: gh-pages
FOLDER: storybook-static
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET: versions/tags/${{ github.ref_name }}
CLEAR_GLOBS_FILE: .github/.clear_pages_glob

0 comments on commit 7d94250

Please sign in to comment.