Skip to content

Commit bf91b18

Browse files
authored
docs: Update deploy.yml (#662)
1 parent f5dbdac commit bf91b18

1 file changed

Lines changed: 5 additions & 27 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,17 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Get yarn cache directory path
14-
id: yarn-cache-dir-path
15-
run: echo "::set-output name=dir::$(yarn cache dir)"
16-
- name: Cache yarn cache
17-
uses: actions/cache@v2
18-
id: cache-yarn-cache
19-
with:
20-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-yarn-
24-
- name: Cache node_modules
25-
id: cache-node-modules
26-
uses: actions/cache@v2
27-
with:
28-
path: node_modules
29-
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
32-
- run: yarn --ignore-engines
33-
if: |
34-
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
35-
steps.cache-node-modules.outputs.cache-hit != 'true'
12+
- uses: actions/checkout@v4
13+
- uses: oven-sh/setup-bun@v2
14+
- run: bun i
3615
- name: site
3716
env:
3817
CI: true
3918
GA_KEY: UA-72788897-5
4019
PROGRESS: none
41-
run: npm run build
42-
20+
run: bun run build
4321
- name: Deploy
44-
uses: peaceiris/actions-gh-pages@v3
22+
uses: peaceiris/actions-gh-pages@v4
4523
with:
4624
github_token: ${{ secrets.GITHUB_TOKEN }}
4725
publish_dir: ./dist

0 commit comments

Comments
 (0)