From eb80e21c313cee23175ac9319ad3027deed93a0b Mon Sep 17 00:00:00 2001 From: timkicker Date: Fri, 25 Apr 2025 14:49:29 +0200 Subject: [PATCH] Update pages.yml --- .github/workflows/pages.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3ef4c20..dd2cb48 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -9,25 +9,35 @@ jobs: pages: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + # Repository auschecken + - uses: actions/checkout@v4 + + # Node.js-Umgebung einrichten - name: Use Node.js 12.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: '12.x' + + # NPM-Dependencies cachen (v3 statt v2!) - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules - key: ${{ runner.OS }}-npm-cache + key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.OS }}-npm-cache + ${{ runner.os }}-npm-cache- + + # Install & Build - name: Install Dependencies - run: npm install + run: npm ci + - name: Build run: npm run build + + # GitHub Pages deploy - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public - publish_branch: master # deploying branch \ No newline at end of file + publish_branch: master # deploying branch