Publish nightlies as pre-releases

So stable versions can be marked on the Releases page
This commit is contained in:
powderluv
2023-02-22 12:05:28 -08:00
committed by GitHub
parent bc4459b6f4
commit e6841acf36

View File

@@ -44,7 +44,7 @@ jobs:
body: |
Automatic snapshot release of nod.ai SHARK.
draft: true
prerelease: false
prerelease: true
- name: Build Package
shell: powershell
@@ -67,18 +67,19 @@ jobs:
# $env:SHARK_PACKAGE_VERSION=${{ env.package_version }}
# pip wheel -v -w dist . --pre -f https://download.pytorch.org/whl/nightly/torch -f https://llvm.github.io/torch-mlir/package-index/ -f https://nod-ai.github.io/SHARK-Runtime/pip-release-links.html
- uses: actions/upload-artifact@v2
with:
path: dist/*
#- uses: actions/upload-artifact@v2
# with:
# path: dist/*
- name: Upload Release Assets
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
uses: dwenegar/upload-release-assets@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.NODAI_INVOCATION_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
assets_path: ./dist/*
asset_content_type: application/vnd.microsoft.portable-executable
- name: Publish Release
id: publish_release