Commit 8149d362 authored by Casper's avatar Casper
Browse files

Create release after build upon new tag

parent 04b164c4
...@@ -2,8 +2,8 @@ name: Build AutoAWQ Wheels with CUDA ...@@ -2,8 +2,8 @@ name: Build AutoAWQ Wheels with CUDA
on: on:
push: push:
branches: tags:
- release_package - "v*"
jobs: jobs:
build_wheels: build_wheels:
...@@ -62,15 +62,13 @@ jobs: ...@@ -62,15 +62,13 @@ jobs:
$wheel_path = Get-ChildItem dist\*.whl | ForEach-Object { $_.Name } $wheel_path = Get-ChildItem dist\*.whl | ForEach-Object { $_.Name }
echo "wheel_path=$wheel_path" >> $env:GITHUB_ENV echo "wheel_path=$wheel_path" >> $env:GITHUB_ENV
- uses: actions/upload-artifact@v3 - name: Create a Release
if: runner.os == 'Linux' id: create_release
with: uses: shogo82148/actions-create-release@v1
name: 'linux-cuda-wheels'
path: ./dist/*.whl - name: Upload Assets
uses: shogo82148/actions-upload-release-asset@v1
- uses: actions/upload-artifact@v3
if: runner.os == 'Windows'
with: with:
name: 'windows-cuda-wheels' upload_url: ${{ steps.create_release.outputs.upload_url }}
path: ./dist/*.whl asset_path: ./dist/*.whl
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment