Skip to content

ci: added release pipelines for slash #4

ci: added release pipelines for slash

ci: added release pipelines for slash #4

# Simple workflow for deploying static content to GitHub Pages
name: Deploy Storybooks to GH pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "*" # Use the LTS Node.js version
cache: "npm"
- name: npm ci
run: npm ci
- name: build storybooks
run: npm run build
- name: create artifact folder
run:
mkdir -p site/slash/css & site/slash/react & mkdir -p
site/look-and-feel/css & mkdir -p site/look-and-feel/react
- name: move storybooks to folders
run:
cp -R slash/css/storybook-static/* site/slash/css & cp -R
slash/react/storybook-static/* site/slash/react & cp -R
look-and-feel/css/storybook-static/* site/look-and-feel/css & cp -R
look-and-feel/react/storybook-static/* site/look-and-feel/react
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "site"
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4