From 5ec3f80a9b3430b4407f05eb5d792d146ea49a35 Mon Sep 17 00:00:00 2001 From: j m <1406993111@qq.com> Date: Sat, 11 May 2024 10:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 15 ++++++++++++++- theme.yaml | 2 +- version | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4091df9..4aca9a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ name: Node.js CI on: push: - branches: [ "master" ] + branches: [ "master", "dev" ] paths: ["version"] jobs: @@ -20,6 +20,17 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Determine Branch Type + id: determine_branch_type + run: | + branch_type=unknown + if [[ $GITHUB_REF == refs/heads/master ]]; then + branch_type=master + elif [[ $GITHUB_REF == refs/heads/dev ]]; then + branch_type=dev + fi + echo "::set-output name=type::$branch_type" + shell: bash - name: version id: version run: | @@ -44,6 +55,7 @@ jobs: path: dist - name: Create Release + if: ${{ steps.determine_branch_type.outputs.type == 'master' }} id: create_release uses: actions/create-release@latest env: @@ -56,6 +68,7 @@ jobs: prerelease: false - name: Upload Release Asset + if: ${{ steps.determine_branch_type.outputs.type == 'master' }} uses: dwenegar/upload-release-assets@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/theme.yaml b/theme.yaml index 82b1a50..bbc8e18 100644 --- a/theme.yaml +++ b/theme.yaml @@ -30,7 +30,7 @@ spec: settingName: theme-dream2-plus-setting configMapName: theme-dream2-plus-configMap # 版本号 - version: 1.2.1.0 + version: 1.2.1 # 最低支持的 Halo 版本 require: ">=2.12.0" # 许可 diff --git a/version b/version index d2d61a7..cb174d5 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.2.2 \ No newline at end of file +1.2.1 \ No newline at end of file