From 7d1a98bf8d5db2af1782bb39cbf385501fbf1915 Mon Sep 17 00:00:00 2001 From: Salim Djerbouh <13698160+CaddyDz@users.noreply.github.com> Date: Mon, 12 Jun 2023 23:19:00 +0100 Subject: [PATCH] Work In Progress This is a trash commit to save changes Signed-off-by: Salim Djerbouh <13698160+CaddyDz@users.noreply.github.com> --- .github/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index caa76e1..00e82a7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,8 @@ jobs: build: name: Build runs-on: ubuntu-latest + permissions: + contents: write if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')" steps: @@ -20,6 +22,14 @@ jobs: with: node-version: 12 + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies run: npm ci --omit=dev @@ -43,6 +53,7 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public \ No newline at end of file