# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions name: Node.js CI on: push: branches: [feature/live-preview] pull_request: branches: [feature/live-preview] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [14.x] steps: - name: Set Actions Allow Unsecure Commands run: | echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: Installing my packages run: yarn install - name: Build my App run: yarn build env: NEXT_PUBLIC_BASE_PATH: /chakra-nextjs-pro - run: yarn export env: NEXT_PUBLIC_BASE_PATH: /chakra-nextjs-pro - run: touch ./out/.nojekyll - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@3.5.9 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages FOLDER: out