This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
feat: adds capability to export user qr-code into wallpaper #4391
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Storybook | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- pages/** | |
- components/** | |
- stories/** | |
- .storybook/** | |
- package.json | |
pull_request: | |
paths: | |
- pages/** | |
- components/** | |
- stories/** | |
- .storybook/** | |
- package.json | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
if: github.repository == 'EddieHubCommunity/BioDrop' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: install dependencies | |
run: npm ci | |
- name: run build | |
run: npm run build-storybook | |
- name: Upload artifact | |
if: github.event_name != 'pull_request' | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "./storybook-static" | |
# Deployment job | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |