Skip to content

Commit 916efb5

Browse files
committed
Use release workflow for GitHub releases only
1 parent fe10389 commit 916efb5

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11-
environment: pypi
1211
permissions:
1312
contents: write
14-
id-token: write
1513

1614
steps:
1715
- name: Checkout
@@ -59,9 +57,6 @@ jobs:
5957
raise SystemExit(f"Missing release note file: {release_note}")
6058
PY
6159
62-
- name: Publish to PyPI
63-
uses: pypa/gh-action-pypi-publish@release/v1
64-
6560
- name: Create GitHub Release
6661
uses: softprops/action-gh-release@v2
6762
with:

docs/ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Auto mode decides between full and incremental execution from:
1717
This repository includes checked-in workflows under `.github/workflows/`:
1818

1919
- `ci.yml`: test matrix, build, metadata check, and install smoke test
20-
- `release.yml`: build, metadata check, and PyPI publish on version tags
20+
- `release.yml`: version validation, build, metadata check, and GitHub Release creation on version tags
2121

2222
The README includes a sample consumer workflow for running `code2skill` inside another repository.
2323

docs/release.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,10 @@ For a test-version rehearsal, you can skip this section and keep the current ver
5252
This repository includes:
5353

5454
- `.github/workflows/ci.yml`: unit tests plus package build and install smoke check
55-
- `.github/workflows/release.yml`: build, `twine check`, and PyPI publish on version tags
55+
- `.github/workflows/release.yml`: version validation, build, `twine check`, and GitHub Release creation on version tags
5656

57-
The release workflow expects PyPI publishing to be configured for trusted publishing or equivalent repository credentials.
58-
59-
For the checked-in GitHub Actions workflow, the trusted-publishing environment name is `pypi`.
60-
If PyPI does not have a matching trusted publisher for:
61-
62-
- owner: `oceanusXXD`
63-
- repository: `code2skill`
64-
- workflow: `.github/workflows/release.yml`
65-
- environment: `pypi`
66-
67-
then the `Publish to PyPI` step will fail even when build and metadata checks succeed.
57+
The checked-in release workflow is intentionally repository-focused. It does not publish to PyPI automatically.
58+
If you want package publishing later, treat that as a separate manual or dedicated workflow concern.
6859

6960
## Manual Release Safety Notes
7061

docs/releases/v0.1.6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This release is a follow-up to `0.1.5` and is intended to complete the first suc
88

99
- keeps the current CLI and Python package surface from `0.1.5`
1010
- publishes from the latest `main` branch state
11-
- uses the updated release workflow with the `pypi` environment configured for trusted publishing
11+
- uses the updated release workflow for version validation, build checks, and GitHub Release creation without automatic PyPI publishing
1212

1313
## Result
1414

15-
If the repository's trusted publisher is configured correctly on PyPI, this version should be the first fully successful GitHub Actions release in the new workflow line.
15+
This version is intended to be the first successful GitHub Actions release in the new repository-focused workflow line.

0 commit comments

Comments
 (0)