瀏覽代碼

Merge remote-tracking branch 'origin/master'

赵小蒙 1 年之前
父節點
當前提交
56213908ff
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      .github/workflows/python-package.yml

+ 11 - 1
.github/workflows/python-package.yml

@@ -8,6 +8,8 @@ on:
     branches: [ "master" ]
     branches: [ "master" ]
   pull_request:
   pull_request:
     branches: [ "master" ]
     branches: [ "master" ]
+  workflow_dispatch:
+
 
 
 jobs:
 jobs:
   build:
   build:
@@ -28,7 +30,15 @@ jobs:
       run: |
       run: |
         python -m pip install --upgrade pip
         python -m pip install --upgrade pip
         if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
         if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-  
+    - name: Install wheel
+      run: |
+        python -m pip install wheel
     - name: Build wheel
     - name: Build wheel
       run: |
       run: |
         python setup.py bdist_wheel
         python setup.py bdist_wheel
+    - name: Upload artifact
+      uses: actions/upload-artifact@v2
+      with:
+        name: wheel-file
+        path: dist/*.whl
+