deploy
Create and push a version tag to publish to PyPI and create a GitHub Release through GitHub Actions
소스 정보
- 저장소
- ok-oldking/ok-script
- 최근 소스 활동
- 2026년 8월 10일 13:35
- 감지된 SKILL.md 언어
- 영어
- 스타
- 762
- 포크
- 215
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- deploy
- description
- Create and push a version tag to publish to PyPI and create a GitHub Release through GitHub Actions
# Deploy to PyPI
When instructed to deploy, release, or publish to PyPI, follow these steps **in order**. GitHub Actions builds the tagged commit, publishes it with the repository's `PYPI_API_TOKEN` secret, and creates the GitHub Release.
## 1. Check for uncommitted changes and commit if necessary
// turbo
```powershell
git status --short
```
If there are uncommitted changes:
1. Run `git diff --stat` and `git diff` to review them.
// turbo
```powershell
git diff --stat
```
// turbo
```powershell
git diff
```
2. Write a concise, descriptive commit message summarizing **only these uncommitted changes**.
3. Stage and commit:
// turbo
```powershell
git add -A
```
// turbo
```powershell
git commit -m "<generated commit message>"
```
If there are NO uncommitted changes, proceed directly to Step 2.
## 2. Determine the release version
Choose the exact package version to release (for example, `1.0.98`). The Git tag must be `v<version>`, and the workflow passes `<version>` to the build through `OK_SCRIPT_BUILD_VERSION`.
## 3. Tag HEAD with the release version
// turbo
```powershell
git tag v<version>
```
Replace `<version>` with the chosen version (e.g. `1.0.98`).
## 4. Push commit and tag
// turbo
```powershell
git push --tags
```
## 5. Verify the workflow
Open the GitHub Actions run triggered by the pushed tag. It must complete both the `Build and publish` and `Create GitHub release` jobs. If publishing fails, do not create or move another tag; report the failure.
## 6. Report
Tell the user:
- The commit message used (if any)
- The release version and tag
- That the tag has been pushed and the GitHub Actions run result
GitHub에서 보기