Skip to content

Commit

Permalink
Merge pull request #2 from ai4agi/dev
Browse files Browse the repository at this point in the history
feat: add workflows
  • Loading branch information
AmbroseX authored Feb 6, 2024
2 parents 6659b64 + d1a3ba2 commit e902769
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Actions CI - Next.js version 12 static site export, GitHub Actions Build and Deploy

on:
push:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 获取源码 ️
uses: actions/checkout@v3

- name: Node环境版本 ️
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn' # 启用Yarn缓存

- name: 安装依赖 ⚙️
run: yarn install

- name: 打包 ️
run: |
yarn build
touch out/.nojekyll
- name: 部署
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out
clean: true

0 comments on commit e902769

Please sign in to comment.