From 7d9bac9b0d8dd03defb4743eb11e5521743895f2 Mon Sep 17 00:00:00 2001 From: liuzhihang Date: Mon, 14 Nov 2022 23:46:14 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9895061..f3a04e0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,10 @@ jobs: - name: Compress zip run: | PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json) - PRE_ZIP_FOLDER=theme-anatole-${PACKAGE_VERSION} + PRE_ZIP_FOLDER=halo-theme-hao-${PACKAGE_VERSION} ARTIFACT_NAME=${PRE_ZIP_FOLDER}.zip ARTIFACT_PATHNAME=dist/${ARTIFACT_NAME} - echo "theme-anatole version $PACKAGE_VERSION" + echo "halo-theme-hao version $PACKAGE_VERSION" echo "Artifact name: ${ARTIFACT_NAME}" echo "Artifact pathname: ${ARTIFACT_PATHNAME}" echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV @@ -53,10 +53,10 @@ jobs: - name: Compress zip run: | PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json) - PRE_ZIP_FOLDER=theme-anatole-${PACKAGE_VERSION} + PRE_ZIP_FOLDER=halo-theme-hao-${PACKAGE_VERSION} ARTIFACT_NAME=${PRE_ZIP_FOLDER}.zip ARTIFACT_PATHNAME=dist/${ARTIFACT_NAME} - echo "theme-anatole version $PACKAGE_VERSION" + echo "halo-theme-hao version $PACKAGE_VERSION" echo "Artifact name: ${ARTIFACT_NAME}" echo "Artifact pathname: ${ARTIFACT_PATHNAME}" echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV @@ -79,7 +79,7 @@ jobs: const artifactPathName = process.env.ARTIFACT_PATHNAME const artifactName = process.env.ARTIFACT_NAME console.log('Releasing', releaseId, artifactPathName, artifactName) - await github.repos.uploadReleaseAsset({ + await octokit.repos.uploadReleaseAsset({ owner, repo, release_id: releaseId, name: artifactName,