mirror of
https://github.com/certd/certd.git
synced 2026-04-27 23:37:29 +08:00
chore: atom ui publish
This commit is contained in:
@@ -51,7 +51,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rootDir=$(pwd)
|
rootDir=$(pwd)
|
||||||
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
||||||
cd ./packages/ui/certd-client/dist && zip -r ../../../ui.zip .
|
cd ./packages/ui/certd-client/dist && zip -r ../ui.zip .
|
||||||
cd $rootDir
|
cd $rootDir
|
||||||
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ async function uploadFile(url, headers, data) {
|
|||||||
async function publishToAtomgit() {
|
async function publishToAtomgit() {
|
||||||
const release = await createRelease()
|
const release = await createRelease()
|
||||||
const uploadUrl = await getUploadUrl()
|
const uploadUrl = await getUploadUrl()
|
||||||
const fileName = `ui.zip`
|
const fileName = `./packages/ui/certd-client/ui.zip`
|
||||||
const fileData = fs.createReadStream(fileName)
|
const fileData = fs.createReadStream(fileName)
|
||||||
const contentLength = fs.statSync(fileName).size
|
const contentLength = fs.statSync(fileName).size
|
||||||
uploadUrl.headers['Content-Length'] = contentLength
|
uploadUrl.headers['Content-Length'] = contentLength
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
4
|
5
|
||||||
|
|||||||
Reference in New Issue
Block a user