Skip to content

Merge pull request #236 from CrystallizeAPI/feature/shop-api-functions #221

Merge pull request #236 from CrystallizeAPI/feature/shop-api-functions

Merge pull request #236 from CrystallizeAPI/feature/shop-api-functions #221

Workflow file for this run

name: GitHub Pages
on:
push:
paths:
- 'apps/**/*'
- 'components/**/*'
- '.github/workflows/gh-pages.yaml'
branches:
- main
jobs:
deploy:
name: 🚀 Deploy on Github.io
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Set .homepage in package.json
uses: jossef/action-set-json-field@v2
with:
file: apps/demo/package.json
field: homepage
value: libraries
- name: 🥖 Build the React App
run: |
yarn
yarn build --filter demo
- name: 🍿 Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/demo/build
keep_files: true