Skip to content

Merge pull request #2 from virtualidentityag/feat/CARITAS-243-rm-lega… #2

Merge pull request #2 from virtualidentityag/feat/CARITAS-243-rm-lega…

Merge pull request #2 from virtualidentityag/feat/CARITAS-243-rm-lega… #2

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.diakonie.dev.virtual-identity.com >> $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