From 8ae3eb764061cb2dd781d3f82cd5d8ec6ea956a3 Mon Sep 17 00:00:00 2001 From: Ghian Date: Sun, 19 Jan 2025 12:17:30 +0800 Subject: [PATCH] cd: install gh-pages only (#115) --- .github/workflows/deploy.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2729e71..d17522b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,16 +12,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 - - name: Cache Node Modules - uses: actions/cache@v4 - with: - path: | - ~/.npm - node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Download Build Artifact uses: dawidd6/action-download-artifact@v7 with: @@ -43,7 +33,7 @@ jobs: node-version: latest - name: Install Dependencies - run: npm ci --cache .npm --prefer-offline + run: npm install gh-pages --save-dev - name: Deploy to GitHub Pages run: npx gh-pages -d dist --repo https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Fingertips18/fingertips18.github.io.git