Update demo app to 1.4.3 #58
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: Deploy demo-app to Github-Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build and deploy demo-app | |
runs-on: ubuntu-latest | |
env: | |
NEXT_PUBLIC_BASE_PATH: /tailwind-datepicker-react | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Get files | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install packages | |
working-directory: ./demo-app | |
run: npm ci | |
- name: Build project | |
working-directory: ./demo-app | |
run: npm run build | |
- name: Export static files | |
working-directory: ./demo-app | |
run: npm run export | |
- name: Add .nojekyll file | |
working-directory: ./demo-app | |
run: touch ./out/.nojekyll | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: ./demo-app/out |