Skip to content

Commit 1ab6f26

Browse files
authored
ci: fix website deployment (#936)
1 parent ce5e37c commit 1ab6f26

File tree

2 files changed

+11107
-7778
lines changed

2 files changed

+11107
-7778
lines changed

.github/workflows/website-deployment.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- name: Checkout
16+
uses: actions/checkout@v3
1617
- name: Cache/restore dependencies
1718
uses: actions/cache@v3
18-
id: cache
1919
with:
20-
path: ./website/node_modules
20+
path: ./website/.yarn
2121
key: website-${{ hashFiles('website/yarn.lock') }}
2222
- name: Install dependencies
23-
if: steps.cache.outputs.cache-hit != 'true'
24-
run: yarn install --frozen-lockfile --cwd ./website
25-
- name: Release
23+
run: yarn
2624
working-directory: ./website
25+
- name: Deploy
2726
run: |
2827
git config --global user.name ${{ secrets.GH_BOT_NAME }}
2928
git config --global user.email ${{ secrets.GH_BOT_EMAIL }}
3029
echo "machine github.com login ${{ secrets.GH_BOT_NAME }} password ${{ secrets.GH_RELEASE_TOKEN }}" > ~/.netrc
3130
GIT_USER=${{ secrets.GH_BOT_NAME }} yarn run deploy
31+
working-directory: ./website

0 commit comments

Comments
 (0)