diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ba84bc..428745b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,25 +26,35 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Setup PNPM + uses: pnpm/action-setup@v2 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 - cache: 'npm' + node-version: 20 + cache: 'pnpm' - name: Install dependencies - run: npm ci + run: pnpm install - name: Build - run: npm run build + run: pnpm run build + + - name: Create subpages + run: | + mkdir dist/add dist/multiply dist/convert + cp dist/index.html dist/add + cp dist/index.html dist/multiply + cp dist/index.html dist/convert - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: './dist' diff --git a/index.html b/index.html index 9f73a00..c3ffbbc 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,6 @@
- +