Skip to content

Commit 5f13773

Browse files
committed
ci(release): update release workflow and configuration
- Uncomment version control in jreleaser.yml - Remove redundant comments and todo items - Adjust GitHub Actions release workflow - Enable release trigger on tag push
1 parent e16ef13 commit 5f13773

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
jobs:
1717
build:
1818
name: Build and Release
19-
# if: startsWith(github.ref, 'refs/tags/')
19+
if: startsWith(github.ref, 'refs/tags/')
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout

jreleaser.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ matrix:
66
# - { goos: linux, goarch: amd64, platform: linux-x86_64 }
77
# - { goos: windows, goarch: arm64, platform: windows-aarch_64 }
88
- { goos: windows, goarch: amd64, platform: windows-x86_64 }
9-
# environment:
10-
# properties:
11-
# VERSION: 0.3.4 # 直接在配置文件中定义 todo
9+
1210
project:
1311
name: jenv
14-
version: 0.3.4 # 引用上面定义的属性 todo
12+
# version: 1.0.0 #local running
13+
# version: "{{ env.JRELEASER_PROJECT_VERSION | default('1.2.1') }}" # 默认值语法
1514
description: Java Environment Manager
1615
copyright: Copyright (c) 2025 WhyWhatHow
1716
authors:

0 commit comments

Comments
 (0)