Skip to content

Commit 4d6137b

Browse files
committed
fixes release
1 parent 5425d32 commit 4d6137b

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ jobs:
330330
run: pip3 install -r requirements.txt
331331
- name: Publish python packages
332332
env:
333-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
334-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
333+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_PASSWORD }}
335334
run: _tooling/publish.sh
336335
- name: Prepare github release
337336
run: |

_tooling/make_release.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ if ! python _tooling/check_version.py ${PKG_VERSION}; then
1414
exit 1
1515
fi
1616

17-
for PKG in */pyproject.toml; do
17+
for PKG in {cluster_tools,webknossos}/pyproject.toml; do
1818
PKG="$(dirname "$PKG")"
19-
if [[ "$PKG" == "docs" || "$PKG" == "wkcuber" ]]; then
20-
echo Skipping "$PKG"
21-
continue
22-
fi
2319
echo "Creating release for $PKG"
2420

2521
pushd "$PKG" > /dev/null

_tooling/publish.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
set -eEuo pipefail
33
set +x
44

5-
for PKG in */pyproject.toml; do
5+
for PKG in {cluster_tools,webknossos}/pyproject.toml; do
66
PKG="$(dirname "$PKG")"
7-
if [[ "$PKG" == "docs" || "$PKG" == "wkcuber" ]]; then
8-
echo Skipping "$PKG"
9-
continue
10-
fi
117
echo Publishing "$PKG"
128

139
pushd "$PKG" > /dev/null
@@ -20,7 +16,7 @@ for PKG in */pyproject.toml; do
2016
poetry version "$PKG_VERSION"
2117
# replace all relative path dependencies with the current version:
2218
sed -i 's/\(.*\) = .* path \= \"\.\..*/\1 = "'"$PKG_VERSION"'"/g' pyproject.toml
23-
poetry publish --build -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD"
19+
poetry publish --build
2420

2521
# Restore files
2622
mv pyproject.toml.bak pyproject.toml

0 commit comments

Comments
 (0)