Skip to content

Merge pull request #12 from virtualidentityag/feat/CARITAS-286-additi… #6

Merge pull request #12 from virtualidentityag/feat/CARITAS-286-additi…

Merge pull request #12 from virtualidentityag/feat/CARITAS-286-additi… #6

Workflow file for this run

name: Deploy storybook to Pages
on:
push:
branches: ['develop']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: set env
run: |
echo REACT_APP_API_URL=https://dev.caritas-rework.dev.virtual-identity.net >> $GITHUB_ENV
- name: Run build
run: npm run build-storybook
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './storybook-static'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2