diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3387bdf..f4f21c6 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -37,16 +37,17 @@ jobs: with: ref: synolib2 path: 'synolib2' - - run: cd synolib2 - name: Use Node.js uses: actions/setup-node@v4 with: node-version: '20.x' + - run: cd synolib2 - run: npm ci - run: npm run example build - - run: mkdir ../build/next - - run: cp ./example/index.js ./example/index.css ./example/index.html ./example/index.js.map ../build/next/ - - run: cd .. + - run: | + mkdir ../build/next + cp ./example/index.js ./example/index.css ./example/index.html ./example/index.js.map ../build/next/ + cd .. - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@4.1.5