Skip to content

Merge pull request #21 from gisce/sync/main-to-develop-20250108-123547 #165

Merge pull request #21 from gisce/sync/main-to-develop-20250108-123547

Merge pull request #21 from gisce/sync/main-to-develop-20250108-123547 #165

Workflow file for this run

name: Deploy Storybook to GitHub Pages
on:
push:
branches:
- main
- develop
- alpha
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20.5.0'
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Dependencies
run: npm ci
- name: Build Storybook
run: npm run build-storybook
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_PAT }}
publish_dir: ./storybook-static
destination_dir: ${{ github.ref_name }}
keep_files: true