Skip to content

Commit 387fcf0

Browse files
committed
test release_pypi_task.yml
1 parent 3d5c76e commit 387fcf0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
name: Release Aenv SDK
22

33
on:
4+
push:
5+
branches:
6+
- add_workflow
7+
paths:
8+
- '.github/workflows/release_pypi_task.yml'
49
workflow_dispatch:
510

611
jobs:
712
publish-to-pypi:
813
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: ./aenv
917

1018
steps:
1119
- name: Checkout code
@@ -14,11 +22,10 @@ jobs:
1422
- name: Set up Python
1523
uses: actions/setup-python@v4
1624
with:
17-
python-version: '3.11'
25+
python-version: '3.12'
1826

1927
- name: Install build dependencies
2028
run: |
21-
cd aenv
2229
python -m pip install --upgrade pip
2330
pip install build twine
2431
@@ -28,5 +35,4 @@ jobs:
2835
- name: Publish to PyPI
2936
uses: pypa/gh-action-pypi-publish@release/v1
3037
with:
31-
packages-dir: dist/
3238
password: ${{ secrets.PYPI_AUTH_PASSWORD }}

0 commit comments

Comments
 (0)