Skip to content

Commit 178baf7

Browse files
committed
ci(release): grant contents:write, skip-existing on PyPI, decouple crates from CLI build
- Top-level permissions: contents: write so softprops/action-gh-release can actually create the Release. - pypa/gh-action-pypi-publish: skip-existing: true so re-runs don't fail when a version already exists. - publish-crates no longer depends on build-cli; crates.io publication is orthogonal to the binary-archive build. First attempt at v0.1.0-rc.1 published evolveai 0.1.0 to PyPI but failed to create the GitHub Release or publish to crates.io. Deleting and re-tagging after this fix.
1 parent e520cd0 commit 178baf7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
env:
99
CARGO_TERM_COLOR: always
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
build-cli:
1316
name: Build CLI (${{ matrix.target }})
@@ -95,11 +98,11 @@ jobs:
9598
with:
9699
packages-dir: wheels/
97100
password: ${{ secrets.PYPI_API_TOKEN }}
101+
skip-existing: true
98102

99103
publish-crates:
100104
name: Publish to crates.io
101105
runs-on: ubuntu-latest
102-
needs: build-cli
103106
steps:
104107
- uses: actions/checkout@v4
105108
- uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)