Skip to content

Add cropper selection options #813

Add cropper selection options

Add cropper selection options #813

name: Build project and publish LeavittBook on master
on:
workflow_dispatch:
push:
branches:
- 'develop'
- 'master'
pull_request:
branches: ['*']
jobs:
build-project-publish-leavittbook:
runs-on: [self-hosted, linux]
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
shell: bash
- name: NPM install
run: npm install
- name: Lint
run: npm run lint
- name: Run build
run: npm run build
- name: Deploy 🚀
if: github.event_name == 'push' && (github.ref == 'refs/heads/master')
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: packages/leavittbook/dist # The folder that the build-storybook script generates files.
clean: true # Automatically remove deleted files from the deploy branch
target-folder: / # The folder that we serve our Storybook files from
single-commit: true # Only deploy the latest commit