Skip to content

Commit

Permalink
chore: docs index generate
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWielga committed Aug 14, 2024
1 parent 334f099 commit 1b04a72
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,28 @@ jobs:
VERSION=$(npm pkg get version | tr -d '"')
echo "version=$VERSION" >> $GITHUB_ENV
- run: npm run build-storybook -- -o docs
- uses: peaceiris/actions-gh-pages@v4
- name: publish version
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: v${{ env.version }}
- uses: peaceiris/actions-gh-pages@v4
- name: publish latest
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: latest
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: gh-pages
- name: generate index.html
run: node .scripts/generateIndex.js
- name: update index.html
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.out
keep_files: true

0 comments on commit 1b04a72

Please sign in to comment.