mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-04-10 12:49:38 +02:00
Hotfix/gallery build (#337)
* fixed gallery build workflow * updated node version
This commit is contained in:
parent
cff6298f6f
commit
0b37f4bd63
18
.github/workflows/github_page.yaml
vendored
18
.github/workflows/github_page.yaml
vendored
|
|
@ -18,22 +18,10 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.6
|
node-version: 20
|
||||||
|
|
||||||
- name: Get yarn cache
|
- run: npm install
|
||||||
id: yarn-cache
|
- run: npm run build
|
||||||
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"
|
|
||||||
|
|
||||||
- name: Cache dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn
|
|
||||||
|
|
||||||
- run: yarn install
|
|
||||||
- run: yarn build
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue