Skip to content

Commit

Permalink
CI cache (#104)
Browse files Browse the repository at this point in the history
* CI cache

* Faster?

* Better?

* Faster??
  • Loading branch information
billy1624 authored Aug 4, 2023
1 parent e7490c6 commit 2d57de5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d57de5

Please sign in to comment.