Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JamDev0 committed Jan 28, 2024
1 parent f41240d commit b90cf49
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy StoryBook to GitHub Pages

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment on Virtual Machine
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies on Virtual Machine
run: npm ci

- name: Run build on Virtual Machine
run: npm run build-storybook

- name: Install dependencies on Server
uses: appleboy/ssh-action@v1.0.3
with:
script: |
cd ~/app/react-qr-code-reader
npm ci
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '~/app/react-qr-code-reader/storybook-static'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4








0 comments on commit b90cf49

Please sign in to comment.