Skip to content

Commit 46fa916

Browse files
committed
only build website on release
1 parent a545662 commit 46fa916

File tree

2 files changed

+25
-31
lines changed

2 files changed

+25
-31
lines changed

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,28 @@ jobs:
3333
yarn lerna publish --yes from-package --no-verify-access
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
36+
37+
gh-pages:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout 🛎️
41+
uses: actions/checkout@v3
42+
- name: Setup Node
43+
uses: actions/setup-node@v3
44+
- name: Get yarn cache directory path
45+
id: yarn-cache-dir-path
46+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
47+
- name: Yarn Cache
48+
uses: actions/[email protected]
49+
with:
50+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
51+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
52+
restore-keys: |
53+
${{ runner.os }}-modules-
54+
- run: yarn install
55+
- run: yarn build
56+
- name: Deploy 🚀
57+
uses: JamesIves/[email protected]
58+
with:
59+
branch: gh-pages
60+
folder: packages/example/build/

0 commit comments

Comments
 (0)