Commit 1a76d2b1 authored by Chunchi Che's avatar Chunchi Che

fix ci

parent fade23f8
Pipeline #20679 failed
stages:
- install
- check
- lint
- test
- wasm
......@@ -21,6 +22,19 @@ npm_ci:
dependencies:
- npm_ci
ts_check:
extends: .build_base
stage: check
tags:
- linux
script: tsc
rs_check:
stage: check
tags:
-linux
script: cd rust-src && cargo check
ts_lint:
extends: .build_base
stage: lint
......@@ -65,7 +79,6 @@ npm_build:
- npm run build:prod
artifacts:
paths:
- rust-src/pkg
- dist
deploy:
......@@ -78,5 +91,4 @@ deploy:
- npm_build
script:
- mv neos-assets dist/
- mv rust-src dist/
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/neos
......@@ -35,8 +35,8 @@
"scripts": {
"wasm": "wasm-pack build ./rust-src --target web",
"dev": "npm run wasm && vite",
"build": "tsc && vite build && cp -r neos-assets dist/",
"build:prod": "tsc && vite build --base=https://cdn02.moecube.com:444/neos/",
"build": "vite build && cp -r neos-assets dist/",
"build:prod": "vite build --base=https://cdn02.moecube.com:444/neos/",
"preview": "vite preview",
"lint": "eslint --ext .ts --ext .tsx src",
"fmt": "eslint --ext .ts --ext .tsx src --fix && cd rust-src && cargo fmt",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment