Merge pull request #201 from NaverPayDev/oidc #102
This file contains hidden or 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
| name: Deploy Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: {} | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Enable Corepack | |
| run: | | |
| corepack enable | |
| pnpm install | |
| - name: Build Docs | |
| run: | | |
| pnpm run build:docs --filter docs | |
| - name: Deploy Docs | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./apps/docs/dist | |
| destination_dir: docs | |
| publish_branch: gh-pages | |
| - name: Build Storybook | |
| run: | | |
| pnpm run build:docs --filter ui-docs | |
| - name: Deploy Storybook | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./apps/ui-docs/dist | |
| destination_dir: ui-docs | |
| publish_branch: gh-pages | |
| - name: Build Playground | |
| run: | | |
| pnpm run build:docs --filter playground | |
| - name: Deploy Playground | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./apps/playground/dist | |
| destination_dir: playground | |
| publish_branch: gh-pages |