Skip to content

Commit f857210

Browse files
committed
[FIX] build workflow
1 parent 98a5e7a commit f857210

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
- '3.10'
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- name: Checkout Repository
19+
uses: actions/checkout@v3
1920
with:
2021
fetch-depth: 0
2122

@@ -30,30 +31,29 @@ jobs:
3031
draft: false
3132
prerelease: ${{ contains(github.ref, '-beta') || contains(github.ref, '-alpha') || contains(github.ref, '-rc') }}
3233

33-
- name: Extract tag name
34+
- name: Extract Tag Name
3435
id: get_version
3536
run: echo "VERSION=${GITHUB_REF/refs/tags/}" >> $GITHUB_ENV
3637

37-
- name: Set up Python ${{ matrix.python-version }}
38+
- name: Set Up Python ${{ matrix.python-version }}
3839
uses: actions/setup-python@v4
3940
with:
4041
python-version: ${{ matrix.python-version }}
4142

42-
- name: Install dependencies
43+
- name: Install Dependencies
4344
run: |
44-
python -m pip install --upgrade pip setuptools wheel
45+
python -m pip install --upgrade pip setuptools wheel build
4546
46-
- name: Build package
47-
run: |
48-
. ./build.sh
47+
- name: Build Package
48+
run: python -m build
4949

50-
- name: Upload Release wheel
50+
- name: Upload Release Asset
5151
id: upload-release-asset
5252
uses: actions/upload-release-asset@v1
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
with:
5656
upload_url: ${{ steps.create_release.outputs.upload_url }}
57-
asset_path: ./dist.zip
58-
asset_name: dist.zip
57+
asset_path: dist/*
58+
asset_name: package.zip
5959
asset_content_type: application/zip

0 commit comments

Comments
 (0)