Skip to content

Commit 12b396f

Browse files
authored
fix: add missing permissions to upload wheels (#103)
* fix: add missing permissions to upload wheels * chore: cleanup workflow
1 parent e3b54a3 commit 12b396f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
contents: write
102102
outputs:
103103
released: ${{ steps.release.outputs.released }}
104-
newest_release_tag: ${{ steps.release_tag.outputs.newest_release_tag }}
104+
newest_release_tag: ${{ steps.release.outputs.tag }}
105105

106106
steps:
107107
- uses: actions/checkout@v4
@@ -134,15 +134,6 @@ jobs:
134134
with:
135135
github_token: ${{ secrets.GITHUB_TOKEN }}
136136

137-
- name: Install python-semantic-release
138-
run: python3 -m pip install python-semantic-release==7.34.6
139-
140-
- name: Get Release Tag
141-
id: release_tag
142-
shell: bash
143-
run: |
144-
echo "newest_release_tag=$(semantic-release print-version --current)" >> $GITHUB_OUTPUT
145-
146137
build_wheels:
147138
needs: [release]
148139
if: needs.release.outputs.released == 'true'
@@ -184,7 +175,7 @@ jobs:
184175
run: python -m cibuildwheel --output-dir wheelhouse
185176
# to supply options, put them in 'env', like:
186177
env:
187-
CIBW_SKIP: cp36-* cp37-* cp38-* cp39-* cp310-* pp36-* pp37-* pp38-* pp39-* pp310-* ${{ matrix.musl == 'musllinux' && '*manylinux*' || '*musllinux*' }}
178+
CIBW_SKIP: cp36-* cp37-* cp38-* cp39-* cp310-* pp* ${{ matrix.musl == 'musllinux' && '*manylinux*' || '*musllinux*' }}
188179
CIBW_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc
189180
CIBW_BUILD_VERBOSITY: 3
190181
REQUIRE_CYTHON: 1
@@ -200,6 +191,10 @@ jobs:
200191
runs-on: ubuntu-latest
201192
environment: release
202193

194+
permissions:
195+
id-token: write
196+
contents: write
197+
203198
steps:
204199
- uses: actions/download-artifact@v4
205200
with:

0 commit comments

Comments
 (0)