diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/github-deploy.yml similarity index 100% rename from .github/workflows/gh-deploy.yml rename to .github/workflows/github-deploy.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04d4308..026ecfa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,25 +35,28 @@ jobs: ### 打成压缩包 - name: Create Zip Archive run: | - zip -r 408CSFamily.zip . + zip -r 408CSFamily.zip . \ + -x "node_modules" - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: actions/create-release@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - Release ${{ github.ref }} - - Add feature A - - Fix bug B - draft: false - prerelease: false + release_name: ${{ github.ref }} +# body: | +# Release ${{ github.ref }} +# - Add feature A +# - Fix bug B + body_path: CHANGELOG.md + ## 是否为草稿、是否为预发布 + draft: true + prerelease: true - name: Upload Assets - uses: actions/upload-release-asset@v1 + uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/scripts/release b/scripts/release index ce439a9..69df229 100755 --- a/scripts/release +++ b/scripts/release @@ -11,7 +11,7 @@ ## 利用commit-and-tag-version生成changelog文档,并跳过commit、tag操作 readonly generateChangeLog='pnpm commit-and-tag-version && git add CHANGELOG.md' ## git提交信息 -readonly commitInfo='chore(release): publish v%s' +readonly commitInfo='v%s' bumpp --preid alpha --execute="$generateChangeLog" --commit "$commitInfo" --all --tag --push \ No newline at end of file