mirror of https://github.com/halo-dev/halo-admin
Refactor zip dist procedure
parent
1cf09ac1ba
commit
b612530b81
|
@ -7,9 +7,7 @@ jobs:
|
||||||
- stage: build
|
- stage: build
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
- "PACKAGE_VERSION=$(sed -nE 's/^\s*\"version\": \"(.*?)",$/\1/p' package.json)""
|
- scripts/zip_dist.sh
|
||||||
- echo "Halo admin version $PACKAGE_VERSION"
|
|
||||||
- zip -r dist/halo-admin-$PACKAGE_VERSION.zip dist
|
|
||||||
- stage: release
|
- stage: release
|
||||||
script: echo "Releasing to Github Release..."
|
script: echo "Releasing to Github Release..."
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
|
||||||
|
echo "Halo admin version $PACKAGE_VERSION"
|
||||||
|
zip -r dist/halo-admin-$PACKAGE_VERSION.zip dist
|
Loading…
Reference in New Issue