Skip to content

Commit

Permalink
ci: 修改脚本错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wan92hen committed Sep 20, 2024
1 parent 2c80905 commit d02efbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ jobs:
- name: Compress zip
run: |
PACKAGE_VERSION=${{ github.event.release.tag_name }}
sed -iE "s/(^\s*\"version\": )\".*?\",$/\1\"${PACKAGE_VERSION}\"/g" package.json
sed -iE "s/(^\s*version: ).*?$/\1${PACKAGE_VERSION}/g" theme.yaml
sed -Ei "s/(^\s*\"version\": )\".*?\",$/\1\"${PACKAGE_VERSION}\"/g" package.json
sed -Ei "s/(^\s*version: ).*?$/\1${PACKAGE_VERSION}/g" theme.yaml
PACKAGE_NAME=${GITHUB_REPOSITORY_NAME_PART_SLUG}
PRE_ZIP_FOLDER=${PACKAGE_NAME}-${PACKAGE_VERSION}
ARTIFACT_NAME=${PRE_ZIP_FOLDER}.zip
Expand Down

0 comments on commit d02efbe

Please sign in to comment.