-
Notifications
You must be signed in to change notification settings - Fork 1
feat(release): add preview build artifacts and guide to release-please PRs #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Palbahngmiyine
wants to merge
1
commit into
solapi:main
from
Palbahngmiyine:worktree-jaunty-seeking-badger
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| <!-- preview-build --> | ||
| ## 📦 v${VERSION} Preview Build | ||
|
|
||
| Release Please가 다음 릴리즈를 준비 중입니다: **v${VERSION}** (commit `${SHORT_SHA}`). | ||
| 이 PR이 머지되면 정식 릴리즈가 자동으로 생성됩니다. 머지 전에 아래 미리보기 바이너리로 새 버전을 검증할 수 있습니다. | ||
|
|
||
| > [!IMPORTANT] | ||
| > 이 바이너리는 **공식 릴리즈가 아닙니다.** GitHub Actions Artifact는 약 **14일 후 자동 삭제**되며 다운로드에는 GitHub 로그인이 필요합니다. | ||
|
|
||
| ### 다운로드 | ||
|
|
||
| **옵션 A — GitHub CLI (권장)** | ||
|
|
||
| ```bash | ||
| gh run download ${RUN_ID} \ | ||
| --repo ${REPO} \ | ||
| --name ${ARTIFACT_NAME} \ | ||
| --dir solactl-preview | ||
| cd solactl-preview | ||
| ``` | ||
|
|
||
| **옵션 B — 웹 브라우저** | ||
|
|
||
| [Workflow Run #${RUN_ID}](${RUN_URL}) 페이지 하단 _Artifacts_ 섹션에서 [`${ARTIFACT_NAME}`](${ARTIFACT_URL}) 을 받아 압축을 풉니다. 다운로드 받은 zip 안에는 OS/아키텍처별 tarball·zip 과 `checksums.txt` 가 들어 있습니다. | ||
|
|
||
| ### 실행 | ||
|
|
||
| #### Linux / macOS | ||
|
|
||
| 플랫폼에 맞는 tarball을 풉니다 (`<OS>` = `linux` 또는 `darwin`, `<ARCH>` = `amd64` 또는 `arm64`): | ||
|
|
||
| ```bash | ||
| tar -xzf solactl_${VERSION}-preview-${SHORT_SHA}_<OS>_<ARCH>.tar.gz | ||
| chmod +x solactl | ||
| ./solactl version | ||
| # 예상 출력: solactl ${VERSION}-preview-${SHORT_SHA} (commit: ..., date: ...) | ||
| ``` | ||
|
|
||
| > [!NOTE] | ||
| > macOS에서 _"확인되지 않은 개발자"_ 경고가 뜨면 quarantine 속성을 제거하세요: | ||
| > ```bash | ||
| > xattr -d com.apple.quarantine ./solactl | ||
| > ``` | ||
|
|
||
| #### Windows | ||
|
|
||
| ```powershell | ||
| Expand-Archive solactl_${VERSION}-preview-${SHORT_SHA}_windows_amd64.zip -DestinationPath . | ||
| .\solactl_${VERSION}-preview-${SHORT_SHA}_windows_amd64\solactl.exe version | ||
| ``` | ||
|
|
||
| ### 무결성 검증 (선택) | ||
|
|
||
| ```bash | ||
| sha256sum -c checksums.txt --ignore-missing | ||
| ``` | ||
|
|
||
| ### 검증 포인트 | ||
|
|
||
| 머지 전에 아래 항목들을 확인해 주세요: | ||
|
|
||
| - 이 PR 상단의 _Release notes_ 에 나열된 변경 사항이 의도대로 동작하는지 | ||
| - `solactl version` 출력이 위 예상 출력과 일치하는지 | ||
| - 회귀 가능성이 있는 기존 명령들 (`solactl configure`, `solactl send sms`, `solactl quota`, `solactl kakao` 등) | ||
| - 자주 쓰는 워크플로 (설정 파일 생성·로드, `--profile` 전환, `--debug` 출력) | ||
|
|
||
| 문제가 있다면 이 PR에 코멘트로 알려주세요. 머지 후 release 워크플로가 자동으로 정식 바이너리를 빌드·배포합니다. | ||
|
|
||
| --- | ||
|
|
||
| <sub>이 댓글은 <code>.github/workflows/release-please.yml</code> 의 <code>preview-release-pr</code> job 에 의해 자동으로 생성·갱신됩니다 · build commit <code>${SHA}</code> · run [#${RUN_ID}](${RUN_URL})</sub> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,9 @@ archives: | |
| checksum: | ||
| name_template: checksums.txt | ||
|
|
||
| snapshot: | ||
| version_template: '{{ .Version }}' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
version_template: '{{ .Version }}-preview-{{ .ShortCommit }}' |
||
|
|
||
| changelog: | ||
| disable: true | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows 가이드에서
Expand-Archive명령을-DestinationPath .와 함께 사용하면 압축 파일 내의 파일들이 현재 디렉토리에 바로 풀립니다. 현재.goreleaser.yaml설정상 압축 파일 내부에 별도의 디렉토리 구조(wrap_in_directory)가 없으므로,solactl.exe는 현재 위치에 생성됩니다. 따라서 하위 디렉토리 경로를 포함한 실행 명령은 실패하게 됩니다. 실행 경로를.\solactl.exe로 수정하는 것이 좋습니다.