Skip to content

Commit

Permalink
[fix] update deploy.yml node version
Browse files Browse the repository at this point in the history
  • Loading branch information
barrystone committed Mar 23, 2024
1 parent dd53bcb commit c19643b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8,100 deletions.
51 changes: 29 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,32 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout ๐Ÿ›Ž๏ธ
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Cache ๐Ÿ’พ
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}

- run: rm -rf node_modules/.cache
- run: npm ci
- run: npm run build
- run: npm run export
- run: touch out/.nojekyll

- name: Deploy ๐Ÿš€
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
force_orphan: true
- name: Checkout ๐Ÿ›Ž๏ธ
uses: actions/checkout@v2

- name: Use Node.js 16.20.2
uses: actions/setup-node@v2
with:
node-version: 16.20.2

- name: Install dependencies
run: npm install

- name: Cache ๐Ÿ’พ
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}

- run: rm -rf node_modules/.cache
- run: npm ci
- run: npm run build
- run: npm run export
- run: touch out/.nojekyll

- name: Deploy ๐Ÿš€
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
force_orphan: true
Loading

0 comments on commit c19643b

Please sign in to comment.