Skip to content

Commit

Permalink
page3
Browse files Browse the repository at this point in the history
  • Loading branch information
Qingqing committed Aug 29, 2024
1 parent 41b326a commit 5f5d77f
Showing 1 changed file with 14 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,42 +25,26 @@ concurrency:
cancel-in-progress: false

jobs:
build:
# Single deploy job since we're just deploying
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
node-version: '18.x' # 使用 Node.js 18 版本
cache: 'npm' # 使用 npm 缓存

- name: Install dependencies
run: npm ci

- name: Build application
run: npm run build
env:
CI: true

# Publish to GitHub Pages
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
branch: gh-pages
folder: build
uses: actions/deploy-pages@v4

0 comments on commit 5f5d77f

Please sign in to comment.