Skip to content

Create auto-milestone.yml #2

Create auto-milestone.yml

Create auto-milestone.yml #2

Workflow file for this run

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