diff --git a/.github/workflows/build_nextjs.yml b/.github/workflows/build_nextjs.yml index 4dd2729..dccca3f 100644 --- a/.github/workflows/build_nextjs.yml +++ b/.github/workflows/build_nextjs.yml @@ -23,18 +23,24 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - name: Cd into nextjs - run: cd React_web_GUI - name: Install packages - run: yarn install --immutable + run: | + cd React_web_GUI + yarn install --immutable - name: Build project - run: yarn build + run: | + cd React_web_GUI + yarn build - name: Export static files - run: yarn export + run: | + cd React_web_GUI + yarn export - name: Add .nojekyll file - run: touch ./out/.nojekyll + run: | + cd React_web_GUI + touch ./out/.nojekyll - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.1 with: branch: gh-pages - folder: out + folder: React_web_GUI/out