Skip to content

Commit 88b37af

Browse files
chore: Bumping version from 0.3.4 to 0.3.5
1 parent e5255e8 commit 88b37af

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

.github/workflows/release-agent.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,24 @@ jobs:
160160
echo "Publishing netdriver-agent to PyPI..."
161161
poetry publish -C projects/agent --skip-existing
162162
163+
- name: Get wheel file path
164+
id: wheel
165+
run: |
166+
WHEEL_FILE=$(ls projects/agent/dist/*.whl)
167+
WHEEL_NAME=$(basename $WHEEL_FILE)
168+
echo "path=$WHEEL_FILE" >> $GITHUB_OUTPUT
169+
echo "name=$WHEEL_NAME" >> $GITHUB_OUTPUT
170+
echo "Found wheel file: $WHEEL_NAME"
171+
163172
- name: Upload wheel to release
164-
uses: softprops/action-gh-release@v1
173+
uses: actions/upload-release-asset@v1
174+
env:
175+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
165176
with:
166-
files: projects/agent/dist/*.whl
177+
upload_url: ${{ needs.create-release.outputs.upload_url }}
178+
asset_path: ${{ steps.wheel.outputs.path }}
179+
asset_name: ${{ steps.wheel.outputs.name }}
180+
asset_content_type: application/zip
167181

168182
build-docker-image:
169183
name: Build and Push Agent Docker Image

.github/workflows/release-simunet.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,24 @@ jobs:
160160
echo "Publishing netdriver-simunet to PyPI..."
161161
poetry publish -C projects/simunet --skip-existing
162162
163+
- name: Get wheel file path
164+
id: wheel
165+
run: |
166+
WHEEL_FILE=$(ls projects/simunet/dist/*.whl)
167+
WHEEL_NAME=$(basename $WHEEL_FILE)
168+
echo "path=$WHEEL_FILE" >> $GITHUB_OUTPUT
169+
echo "name=$WHEEL_NAME" >> $GITHUB_OUTPUT
170+
echo "Found wheel file: $WHEEL_NAME"
171+
163172
- name: Upload wheel to release
164-
uses: softprops/action-gh-release@v1
173+
uses: actions/upload-release-asset@v1
174+
env:
175+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
165176
with:
166-
files: projects/simunet/dist/*.whl
177+
upload_url: ${{ needs.create-release.outputs.upload_url }}
178+
asset_path: ${{ steps.wheel.outputs.path }}
179+
asset_name: ${{ steps.wheel.outputs.name }}
180+
asset_content_type: application/zip
167181

168182
build-docker-image:
169183
name: Build and Push Simunet Docker Image

projects/agent/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "netdriver-agent"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
description = "The agent for NetDevOps, which interact with network device using CLI."
55
authors = [
66
"Vincent <[email protected]>",

0 commit comments

Comments
 (0)