-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c11cd42
commit 166b437
Showing
111 changed files
with
2,928 additions
and
1,219 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: deploy target branch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "The version of the release" | ||
required: true | ||
release-title: | ||
description: "The title of the release" | ||
required: true | ||
release-content: | ||
description: "The summary of the release, a.k.a release note" | ||
required: true | ||
target-branch: | ||
description: "The target branch to deploy" | ||
default: "master" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout to branch master | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.target-branch }} | ||
|
||
- name: Setup python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install build tool | ||
run: pip install build | ||
|
||
- name: Build | ||
id: build | ||
run: python -m build | ||
|
||
- name: Get build results | ||
id: build-result | ||
run: | | ||
echo "whl=$(ls dist/ | grep whl)" >> $GITHUB_OUTPUT | ||
echo "tar=$(ls dist/ | grep tar)" >> $GITHUB_OUTPUT | ||
- name: Create release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ${{ inputs.release-title }} | ||
tag_name: ${{ format('v{0}', inputs.version) }} | ||
body: ${{ inputs.release-content }} | ||
prerelease: false | ||
draft: false | ||
files: | | ||
${{ format('dist/{0}', steps.build-result.outputs.whl) }} | ||
${{ format('dist/{0}', steps.build-result.outputs.tar) }} | ||
- name: Trigger action in index repository | ||
run: | | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.PYPI_ACTION_DISPATCH }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
${{ secrets.PYPI_ACTION_URL }} \ | ||
-d '{"ref":"master"}' | ||
- name: Trigger action in owlite-doc repository | ||
run: | | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
${{ secrets.DOC_ACTION_URL }} \ | ||
-d '{"ref":"main","inputs":{"source":"${{ inputs.target-branch }}","target":"main","msg":"${{ inputs.release-title }} [${{ format('v{0}', inputs.version) }}]"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
![](https://raw.githubusercontent.com/SqueezeBits/owlite/master/.github/images/owlite_logo.png) | ||
![OwLite logo](https://github.com/SqueezeBits/owlite/assets/64083281/abaa3ad9-0c86-4a9c-9b8d-f54ed6d9524b) | ||
|
||
<div align="center"> | ||
<p align="center"> | ||
|
@@ -15,7 +15,7 @@ | |
<a href="https://squeezebits.gitbook.io/owlite/quick/readme"><img src="https://img.shields.io/badge/Documentation-FFA32C" /></a> | ||
|
||
<a href="https://github.com/SqueezeBits/owlite#installation"><img src="https://img.shields.io/badge/python-~=3.10-blue" /></a> | ||
<a href="https://github.com/SqueezeBits/owlite/blob/master/requirements.txt"><img src="https://img.shields.io/badge/pytorch-2.0%20%7C%202.1-blue" /></a> | ||
<a><img src="https://img.shields.io/badge/pytorch-2.0%20%7C%202.1%20%7C%202.2-blue" /></a> | ||
<a href="https://github.com/SqueezeBits/owlite/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-APGL--3.0-lightgray" /></a> | ||
</p> | ||
</div> | ||
|
@@ -55,14 +55,14 @@ To install this package, please use Python 3.10. | |
|
||
Using pip (Recommended) | ||
```bash | ||
pip install --extra-index-url https://pypi.ngc.nvidia.com git+https://github.com/SqueezeBits/owlite | ||
pip install owlite --extra-index-url https://pypi.squeezebits.com/ | ||
``` | ||
|
||
From source | ||
```bash | ||
git clone https://github.com/SqueezeBits/owlite.git | ||
cd owlite | ||
pip install --extra-index-url https://pypi.ngc.nvidia.com . | ||
pip install . | ||
``` | ||
|
||
## Getting Started | ||
|
@@ -77,4 +77,4 @@ Please contact [[email protected]](mailto:[email protected] | |
|
||
<br> | ||
<br> | ||
<div align="center"><img src="https://raw.githubusercontent.com/SqueezeBits/owlite/master/.github/images/SqueezeBits_orange_H.png" width="300px"></div> | ||
<div align="center"><img src="https://github.com/SqueezeBits/owlite/assets/64083281/bdbf55a6-ead7-42d3-b0b7-f1e8eddfb558" width="300px"></div> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.