build: upload files to S3 bucket
This commit is contained in:
parent
219a41b2f3
commit
9c542a4dd4
2 changed files with 12 additions and 2 deletions
|
@ -22,7 +22,7 @@ publish:
|
||||||
- npx semantic-release
|
- npx semantic-release
|
||||||
|
|
||||||
# Build the files.
|
# Build the files.
|
||||||
- npm run build
|
- npm run upload
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
12
package.json
12
package.json
|
@ -21,7 +21,12 @@
|
||||||
"build:docx": "sed 's@­@@g' < dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.html | pandoc -f html -t docx -o dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.docx",
|
"build:docx": "sed 's@­@@g' < dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.html | pandoc -f html -t docx -o dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.docx",
|
||||||
"build:mobi": "kindlegen dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.epub",
|
"build:mobi": "kindlegen dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.epub",
|
||||||
"build:html": "mfgames-writing-format build html",
|
"build:html": "mfgames-writing-format build html",
|
||||||
"commitmsg": "commitlint -E GIT_PARAMS"
|
"prebuild:mobi": "npm run build:epub",
|
||||||
|
"prebuild": "rm -f $npm_package_name-*.* $npm_package_name.tar.bz2",
|
||||||
|
"bundle": "tar -cjf $npm_package_name.tar.bz2 *.epub *.pdf",
|
||||||
|
"prebundle": "npm run build",
|
||||||
|
"upload": "aws --endpoint-url https://$AWS_ENDPOINT s3 cp --acl public-read $npm_package_name.tar.bz2 s3://$AWS_BUCKET/$npm_package_name.tar.bz2",
|
||||||
|
"preupload": "npm run bundle"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fedran/writing-hyphen": "^1.0.0",
|
"@fedran/writing-hyphen": "^1.0.0",
|
||||||
|
@ -71,5 +76,10 @@
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
"path": "./node_modules/cz-conventional-changelog"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||||
|
}
|
||||||
|
},
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue