Skip to content

Commit

Permalink
update build script & ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed Mar 17, 2023
1 parent ac3affb commit 6cd3e13
Show file tree
Hide file tree
Showing 8 changed files with 1,106 additions and 398 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Build Next.js
run: npm i && npm run build && npm run export
- name: Build app
run: cd app && npm i && npm run build
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: build
path: |
app/dist
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
node_modules
/.pnp
.pnp.js

Expand All @@ -10,10 +10,10 @@

# next.js
/.next/
/out/
out

# production
/build
build

# misc
.DS_Store
Expand All @@ -34,3 +34,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# pkg
dist
Loading

0 comments on commit 6cd3e13

Please sign in to comment.