mirror of
https://github.com/certd/certd.git
synced 2026-04-03 14:10:54 +08:00
chore: atom ui publish
This commit is contained in:
2
.github/workflows/publish-atom.yaml
vendored
2
.github/workflows/publish-atom.yaml
vendored
@@ -51,7 +51,7 @@ jobs:
|
||||
run: |
|
||||
rootDir=$(pwd)
|
||||
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
|
||||
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
||||
pnpm install
|
||||
|
||||
@@ -169,7 +169,7 @@ async function uploadFile(url, headers, data) {
|
||||
async function publishToAtomgit() {
|
||||
const release = await createRelease()
|
||||
const uploadUrl = await getUploadUrl()
|
||||
const fileName = `ui.zip`
|
||||
const fileName = `./packages/ui/certd-client/ui.zip`
|
||||
const fileData = fs.createReadStream(fileName)
|
||||
const contentLength = fs.statSync(fileName).size
|
||||
uploadUrl.headers['Content-Length'] = contentLength
|
||||
|
||||
@@ -1 +1 @@
|
||||
4
|
||||
5
|
||||
|
||||
Reference in New Issue
Block a user