Create auto-milestone.yml #2
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: GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Checkout ποΈ | |
| uses: actions/checkout@v4 | |
| - name: Setup Node version π | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies π¦ | |
| run: npm ci | |
| - name: Configure GitHub Pages βοΈ | |
| uses: actions/configure-pages@v5 | |
| - name: Build Storybook π οΈ | |
| run: | | |
| npm run build:storybook | |
| env: | |
| PUBLIC_URL: "/${{ github.event.repository.name }}/" | |
| - name: Upload artifacts π | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: storybook-static | |
| - name: Deploy to GitHub Pages π | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |