setup从tag中自动获取版本号

This commit is contained in:
赵小蒙
2024-03-05 15:05:51 +08:00
parent 7242a4a76e
commit a706743372
2 changed files with 25 additions and 3 deletions
+9 -1
View File
@@ -20,21 +20,29 @@ jobs:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install wheel
run: |
python -m pip install wheel
- name: Build wheel
run: |
python setup.py bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v4
with: