File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,12 @@ jobs:
17
17
- export PKG_NAME=$(node -e "console.log(require('./dist/package/production/package').name)")
18
18
- export PKG_VERSION=$(node -e "console.log(require('./dist/package/production/package').version)")
19
19
- " [[ -d dist/homepage/$PKG_NAME/$PKG_VERSION ]] && npm run test:coverage && cp -r dist/homepage/$PKG_NAME/$PKG_VERSION page && cp -r dist/jest/coverage/lcov-report page/coverage || true"
20
+ - mkdir --parents dist/github
20
21
- cd dist/package/production
21
- - zip -9 --recurse-paths ../../${PKG_NAME}_v$PKG_VERSION.zip **
22
- - zip -9 --recurse-paths ../../${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
22
+ - zip -9 --recurse-paths ../../github/ ${PKG_NAME}_v$PKG_VERSION.zip **
23
+ - zip -9 --recurse-paths ../../github/ ${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
23
24
- cd ../../..
25
+ - cp dist/package/production/{*.d.ts,package.json,license.*} dist/github
24
26
deploy :
25
27
- provider : pages
26
28
local_dir : page
30
32
on : { condition: -d pages }
31
33
- provider : releases
32
34
file_glob : true
33
- file :
34
- - license.*
35
- - dist/package/production/package.json
36
- - dist/package/production/*.d.ts
37
- - " dist/*.zip"
35
+ file : dist/github/*
38
36
skip_cleanup : true
39
37
api_key : $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
40
38
on : { tags: true }
You can’t perform that action at this time.
0 commit comments