From 2d57de56e1e52629e9cebbc19ce8f9109b9a1cf1 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 4 Aug 2023 14:37:00 +0800 Subject: [PATCH] CI cache (#104) * CI cache * Faster? * Better? * Faster?? --- .github/workflows/deploy.yml | 18 ++++++++++++++++++ .github/workflows/preview.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 16415c7e31..61bd51b2e4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,24 @@ jobs: with: node-version: 16 + - uses: actions/cache@v3 + with: + key: ${{ github.repository }}-${{ github.ref_name }} + path: | + ~/.npm + SeaORM/node_modules + SeaORM/.docusaurus + SeaORM/build + Blog/node_modules + Blog/.docusaurus + Blog/build + Seaography/node_modules + Seaography/.docusaurus + Seaography/build + SeaStreamer/node_modules + SeaStreamer/.docusaurus + SeaStreamer/build + - run: sh build.sh - uses: JamesIves/github-pages-deploy-action@v4 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index eb4c5e175b..b4d730e434 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -18,6 +18,24 @@ jobs: with: node-version: 16 + - uses: actions/cache@v3 + with: + key: ${{ github.repository }}-${{ github.ref_name }} + path: | + ~/.npm + SeaORM/node_modules + SeaORM/.docusaurus + SeaORM/build + Blog/node_modules + Blog/.docusaurus + Blog/build + Seaography/node_modules + Seaography/.docusaurus + Seaography/build + SeaStreamer/node_modules + SeaStreamer/.docusaurus + SeaStreamer/build + - run: sh preview.sh ${{ github.event.number }} - run: sh build.sh